I installed and configure the Laravel 5.2, its working fine, for User ACL
I installed the zizaco/entrust
package while running this command php artisan migrate
(for creating roles
, permissions
table etc) getting following error
[Illuminate\Database\QueryException] SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table
role_user
add constraint role_user_user_id_foreign foreign key (user_id
) references `` (id
) on delete cascade on update cascade)[PDOException] SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint
What could be the reason ? am I missing something ? I followed the step wise guideline from entrust site