你好我有一个Lenovo T460刚刚安装Debian 8.7.1但我wifi没有工作.我读过我需要kernel 4.1+工作wifi并且刚刚更新到4.9.0但是当我用该内核重新启动计算机时我遇到了两个错误
iwlwifi 0000:04:00.0: firmware: failed to load iwlwifi-8000C-26.ucode (-2)
iwlwifi 0000:04:00.0: firmware: failed to load iwlwifi-8000C-25.ucode (-2)
Run Code Online (Sandbox Code Playgroud)
我还有其他更多的错误,但我一直在清理,但最后我找不到修复方法.有谁知道我能做什么?
预先感谢您的任何帮助
你好我得到这个错误Illuminate\Database\QueryException与消息'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'posts.user_id' in 'where clause' (SQL: select * from发布where帖子.user_id = 1 and发布.user_id is not null)'我不知道为什么如果在我的数据库中我没有user_id,我有id_user ...
这是我的迁移表
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('user')->unique();
$table->string('email')->unique();
$table->string('password', 60);
$table->string('img');
$table->rememberToken();
$table->timestamps();
});
}
public function down()
{
Schema::drop('users');
}
}
Run Code Online (Sandbox Code Playgroud)
另一个是我的帖子迁移归档
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddPosts extends Migration
{ …Run Code Online (Sandbox Code Playgroud) 如何仅在某些路线中隐藏模型中的某些属性,例如:
我正在使用受保护的$ hidden来隐藏元素,但这会隐藏在我所有的函数或宁静的路线中(索引,显示)
$hidden = [
'coachVisibility', 'thumbnail', 'studentVisibility',
'isHTML', 'studentIndex', 'coachIndex',
'isURL', 'source', 'path',
'status', 'updateTime', 'isfolder',
'parentResource', 'idModifierUser', 'idResourceType',
'idCreatorUser', 'idCreationCountry', 'user',
'country', 'resource'
];
Run Code Online (Sandbox Code Playgroud)
我只想隐藏在Index函数中,而在show函数中,我不想隐藏任何东西。
laravel ×2
php ×2
debian ×1
hide ×1
linux ×1
linux-kernel ×1
model ×1
mysql ×1
sql-server ×1
wifi ×1