blade @can @cannot

https://laravel.com/docs/8.x/authorization#via-blade-templates https://laravel.com/docs/8.x/authorization The gate methods for authorizing abilities (allows, denies, check, any, none, authorize, can, cannot) and the authorization Blade directives (@can, @cannot, @canany) can receive an array as the second argument. These array elements are passed as parameters to gate, and can be used for additional context when making authorization decisions

繼續閱讀

作者的圖片

Sue boy

Sueboy Can support You

CIO

Taiwan