intrip / laravel-authentication-acl

Laravel authentication and ACL admin panel package based on sentry
287 stars 110 forks source link

Laravel Policy issue #144

Closed rasadeghnasab closed 7 years ago

rasadeghnasab commented 8 years ago

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?

intrip commented 8 years ago

That should be because the user model is not the same as the default laravel model.

rasadeghnasab commented 8 years ago

@intrip How can I do that? I mean, how can I change laravel user model to athenticator user model?