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 do you know about laravel contracts?
How will you register service providers?
What is use in laravel?
Tell us what are bundles, reverse routing and the ioc container?
How to check an input value is present or not in laravel?
How to set cookies in laravel?
What is the service container in laravel?
How to get/set configuration values in laravel?
Explain the difference between implicit and explicit route binding in laravel?
what are the benefits of laravel over other php frameworks? Explain
What are the software’s included in laravel homestead?
What is laravel dusk?
Explain how to retrive all requested data in laravel?
Why laravel over other php frameworks?
Does laravel support caching?