Answer Posted / 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 View All Answers
How to serve sites with tls on valet?
What is compact in laravel?
How do I start laravel in ubuntu?
What is laravel route?
What is a pull() ?
Explain laravel’s middleware?
What is report method?
What is xss attack with example?
What is mvc framework laravel?
What are macros in laravel?
By default valet serve your app on which tld? How to configure it to use another domain?
What are redirect responses?
what is meant by Views ?
What is map function in laravel?
List out some artisan commands?