I'm working with Laravel 5.8 and I have created this method in the Controller:
public function __construct()
{
$this->middleware('can:see-brand-requests')->only(['index']);
}
Now I need to say if user has one of these permissions, the show the index
method:
brand-owner-info,brand-overall-info,brand-employees-info,brand-actions,see-brand-requests
So how can I add OR in this case to the Middleware?
You can do something like the following.
Find out more information here: https://laravel.com/docs/9.x/authorization.