roles icon indicating copy to clipboard operation
roles copied to clipboard

Problems with entity permisstions

Open Liar233 opened this issue 9 years ago • 1 comments

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'

Liar233 avatar Jun 22 '16 14:06 Liar233

I'm sorry... I'm just an idiot... I'm try to create Role instead of Permisstion... :-)

Liar233 avatar Jun 22 '16 14:06 Liar233