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 do I make a particular task run everyday by 10pm?

0 Answers  


What do you know about closures in laravel?

0 Answers  


What are the default ports that are forwarded to your homestead environment?

0 Answers  


What is namespace in laravel?

0 Answers  


What is the differce between contracts and facades?

0 Answers  






How to localize resource uris in laravel?

0 Answers  


What is remember token in laravel?

0 Answers  


Tell us have you used lumen before?

0 Answers  


What is php artisan in laravel?

0 Answers  


What is laravel best for?

0 Answers  


How to use select query in laravel?

0 Answers  


Explain loggin in laravel.

0 Answers  


Categories