Grammar.php第39行中的ErrorException:数组到字符串的转换

Die*_*Bsc 2 database request laravel laravel-5 laravel-5.1

这是我在CategorieController.php中的商店功能

public function store(Request $request) {
  Categorie::create([
  'name'=>$request['name'],
  ]);
  return redirect::to('/categorie');
}
Run Code Online (Sandbox Code Playgroud)

这就是我的模型Categorie.php中的内容

class Categorie extends Model { 
  protected $table =['categories'];
  protected $fillable=['name'];
}
Run Code Online (Sandbox Code Playgroud)

但是当我尝试将我的类别保存到数据库时,我收到此错误:

Grammar.php第39行中的ErrorException:数组到字符串的转换

rev*_*evo 7

$table模型中使用的变量是类型string.

protected $table = 'categories';
Run Code Online (Sandbox Code Playgroud)