Problems with entity permisstions
I'm tring to create permisstions for entities, but I have a problem in seeder.
$taskCreateRole = Role::create([ 'name' => 'Task Create', 'slug' => 'task.create', 'model' => 'App\Task', ]);
When I'm tring to excute "artisan db:seed --class=SeederClass" I'm have error.
[Illuminate\Database\QueryException]
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'model' in 'field list' (SQL: insert into roles (name, slug, model, updated_at, created_at) values (Task Create, task.create, App\Task, 2016-06-22 13:50:21, 2016-06-22 13:50:21))
[PDOException]
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'model' in 'field list'
I'm sorry... I'm just an idiot... I'm try to create Role instead of Permisstion... :-)