-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: select * from permissions
#8
Comments
I am also experiencing this issue. I think it tries to read |
Just catch the |
isko-algorithm, solution is to cut off this lines: foreach ($this->getPermissions() as $permission) {
$gate->define($permission->name, function ($user) use ($permission) {
return $user->hasPermission($permission);
});
} run $:~ php artisan migrate and insert back this lines on it place |
|
What an awesome find... Just check for the table before accessing it... |
check so, when you are using console $argv=
[
'artisan'
]; you should change your auth provider like this: // < Disable auth in console >
{
if (empty($_SERVER['argv'])) {
foreach (Permission::all() as $permission) {
Gate::define($permission->name, function ($user) use ($permission) {
return $user->employee->hasAccess($permission);
});
}
}
}
// </ Disable auth in console >
|
This code in file app/Providers/AuthServiceProvider.php
return errors when you deploy project
You have to comment this php code lines, execute php artisan migrate and uncomment back.
The text was updated successfully, but these errors were encountered: