You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If i do it in the CompanyController, I get this Error:
at HandleExceptions->handleError('8192', 'Non-static method Silber\Bouncer\Bouncer::is() should not be called statically, assuming $this from incompatible context', '/home/vagrant/Code/torebuild1/app/Http/Controllers/CompanyController.php', '112', array('id' => '3', 'user' => object(User))) in CompanyController.php line 112
Is there a Issue or am I doing something completely wrong?
The text was updated successfully, but these errors were encountered:
All examples in the docs use the facade. If you've set up the facade alias, you should be able to use the examples in the docs directly. Do not use Silber\Bouncer\Bouncer.
If you don't want to use the facade, inject an instance of Bouncer into your controller:
I have a basic Problem with checking if a user has a role:
If I do it in routes.php it works:
If i do it in the CompanyController, I get this Error:
Is there a Issue or am I doing something completely wrong?
The text was updated successfully, but these errors were encountered: