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 |
Name databases supported by laravel.
How to get JSON Response on Laravel ?
Explain elixir in laravel?
How to use update query in laravel?
Explain dependency injection and their types.
What is seeding in laravel?
What is csrf_field () in laravel?
Differce between contracts and facades?
How do I seed my database for column that is a foreign key referencing to other table?
Tell me how would you add a 3rd party package like sentry?
What is laravel model?
Explain me how to assign multiple middleware to laravel route ?