You can chain ->can() to Route definitions to specify policy rules

You can chain ->can() to Route definitions to specify policy rules

#Laravel Tip: If you are running Laravel v8.70, you can chain can() method directly instead of middleware('can:..')

Here is and example:

We're writing a book, you can get it for free here.