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
What is the default session timeout duration and how can it be set?
What is queues?
How secure is laravel?
By default valet serve your app which tld? On how to configure it to use another domain?
Tell me what is official website url of laravel?
What is valet used in laravel 5?
What is meant by Laravel - Authentication ?
Explain how to bind a service container to a service provide?
Explain Events and Listeners ?
What is technology service provider?
How can we implement a package in laravel?
Tell me what is the purpose of using dd() function iin laravel?
What do you mean by route groups used in laravel 5?
Is laravel an open source?
Do you know laravel service container?