laravel-permission icon indicating copy to clipboard operation
laravel-permission copied to clipboard

Improve permission middleare

Open cesarMtorres opened this issue 3 years ago • 1 comments

using canany instead foreach and other improve is posible this change???

cesarMtorres avatar Sep 14 '22 15:09 cesarMtorres

using canany instead foreach

canany Yes, but using route's name as permission, Not $permission = $request->route()->getName(); It breaks functionality

fredsal avatar Sep 14 '22 19:09 fredsal

@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 avatar Oct 19 '22 00:10 drbyte

@drbyte thanks for the feedback

cesarMtorres avatar Oct 19 '22 13:10 cesarMtorres

@cesarMtorres FYI your canany change has been implemented in the upcoming v6

drbyte avatar Apr 07 '23 20:04 drbyte