What are the Writing Gates and Policies ?
Answer / 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 |
How to install homestead vagrant box?
What is auth? How is it used?
Tell me how to use select query in laravel?
How to Declaration of namespace ?
How to register a service provider via composer in laravel?
How can you update homestead?
How can someone change the default database type in laravel?
What is raw expression in laravel?
List out the databases laravel supports?
How can you generate urls?
What is bootstrap in laravel?
What are advantages of laravel?