Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Problems with entity permisstions #181

Open
Liar233 opened this issue Jun 22, 2016 · 1 comment
Open

Problems with entity permisstions #181

Liar233 opened this issue Jun 22, 2016 · 1 comment

Comments

@Liar233
Copy link

Liar233 commented Jun 22, 2016

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
Copy link
Author

Liar233 commented Jun 22, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant