Improve permission middleare
using canany instead foreach and other improve is posible this change???
using canany instead foreach
canany Yes,
but using route's name as permission, Not
$permission = $request->route()->getName();
It breaks functionality
@cesarMtorres Thanks for the contribution.
Unfortunately canany() only works since Laravel 8. This package is currently still compatible with Laravel 6 and 7.
We may consider your change for a future version which drops support for L6 and L7.
@drbyte thanks for the feedback
@cesarMtorres FYI your canany change has been implemented in the upcoming v6