I want to use laravel Gate facade and I almos eveything is correct but when I call
Gate::allows('edit Or other method', $lesson); nothing happens.
I call Gate with this way
Gate::forUser(\App::make('authenticator')->getLoggedUser())->allows('edit Or other method', $lesson)
and it works. I think it has a problem with this package authentication. Does anyone knows anything about this problem?
I want to use laravel Gate facade and I almos eveything is correct but when I call
Gate::allows('edit Or other method', $lesson);
nothing happens. I call Gate with this wayGate::forUser(\App::make('authenticator')->getLoggedUser())->allows('edit Or other method', $lesson)
and it works. I think it has a problem with this package authentication. Does anyone knows anything about this problem?