Laravel 6.0 introduces a new method Gate::inspect
. This makes it easier to provide custom messages to users during authorization requests, such as a specific error message if their request was denied.
We can use it for policy.
Laravel 6.0 introduces a new method Gate::inspect
. This makes it easier to provide custom messages to users during authorization requests, such as a specific error message if their request was denied.
We can use it for policy.