What are the Writing Gates and Policies ?



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

Post New Answer

More Laravel PHP Framework Interview Questions

How can we use the custom table in laravel?

0 Answers  


Is laravel an mvc?

0 Answers  


What is blade template engine?

0 Answers  


What is the use of blade?

0 Answers  


Explain Events and Listeners ?

1 Answers  






What is soft delete in laravel?

0 Answers  


What is laravel language?

0 Answers  


Is laravel the best php framework?

0 Answers  


How to use skip() and take() in laravel query?

0 Answers  


What is singleton design pattern in laravel?

0 Answers  


What is fluent query builder in laravel?

0 Answers  


What are the difference between latest() and oldest() in laravel?

0 Answers  


Categories