kodeine / laravel-acl

Light-weight role-based permissions system for Laravel 6+ built in Auth system.
MIT License
786 stars 216 forks source link

Library is doesn't migrate files #249

Closed mustafat0k closed 3 years ago

mustafat0k commented 4 years ago

I did try few times but every project given error. I think reason is bigInteger

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 1 (id) on delete cascade)

at C:\Users\casper\Desktop\acl\vendor\laravel\framework\src\Illuminate\Database\Connection.php:669 665| // If an exception occurs when attempting to run a query, we'll format the error 666| // message to include the bindings with SQL, which will make this exception a 667| // lot more helpful to the developer instead of just the database's errors. 668| catch (Exception $e) {

669| throw new QueryException( 670| $query, $this->prepareBindings($bindings), $e 671| ); 672| } 673|

Exception trace:

mustafat0k commented 4 years ago

i figure out the issue but why i still seeing old repo when i include library in my project. "kodeine/laravel-acl": "^2.0", When i updated to composer, doesn't coming last changes on master branch

You can close issue. You should know composer require kodeine/laravel-acl is brings to old repo

IaraCanan commented 4 years ago

how can I solve this issue, I'm having the same problem?