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 do I make a particular task run everyday by 10pm?
What do you know about closures in laravel?
What are the default ports that are forwarded to your homestead environment?
What is namespace in laravel?
What is the differce between contracts and facades?
How to localize resource uris in laravel?
What is remember token in laravel?
Tell us have you used lumen before?
What is php artisan in laravel?
What is laravel best for?
How to use select query in laravel?
Explain loggin in laravel.