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?
How to list all routes in laravel?
What is technology service provider?
Please explain laravel query builder?
Explain how to do subdomain routing in laravel?
How to register a service provider via composer in laravel?
What do you understand by database migrations in laravel? How can we use it?
What do you know about facades in laravel? Explain.
How to extend a layout file in laravel view?
What do you understand by reverse routing?
How to Configuration Laravel - Encryption ?
How do you install laravel?
What is a Laravel - Ajax ?
Explain me how to assign multiple middleware to laravel route ?
What is a forget() ?