J
J
Jedi2018-03-08 17:05:17
Laravel
Jedi, 2018-03-08 17:05:17

How to get $user for Bouncer?

Hello! I'm new to Laravel and there are some things I don't understand. Please help me study the documentation.
To use Bouncer, you need to pass the $user variable to the method. The question is where do I get this $user, what should be stored in this variable.
Here is the link .
I believe that this is a model call, but how to do it right?
Who used Bouncer, please answer...
How to disable the user class methods Store, Edit, Destroy, Create, Update, and leave only index and show ?
Thanks to.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question