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 can we use the custom table in laravel?
Is laravel an mvc?
What is blade template engine?
What is the use of blade?
Explain Events and Listeners ?
What is soft delete in laravel?
What is laravel language?
Is laravel the best php framework?
How to use skip() and take() in laravel query?
What is singleton design pattern in laravel?
What is fluent query builder in laravel?
What are the difference between latest() and oldest() in laravel?