Answer Posted / surbhi
Gates are used to determine if a user is authorized to perform a specified action.
They are typically defined in App/Providers/AuthServiceProvider.php using Gate facade.
Gates are also functions which are declared for performing authorization mechanism.
Policies are declared within an array and are used within classes and methods which use authorization mechanism.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain how to install installing mariadb on homestead?
What is the differce between contracts and facades?
How does antiforgerytoken work?
In order to run laravel. What permissions are required to be on storage and the bootstrap/cache directories?
What is schema in laravel?
How do I require authentication for a set of routes associated with a subdomain?
How to stop mysql on valet?
What is gate in laravel?
What is your favorite feature of laravel?
Is laravel any good?
How install react js in laravel?
Which file is used to create a connection with the database?
How do I see all defined routes?
What do you know about facades in laravel? Explain.
Tell me what is service providers?