标签:class reac efi ret .com middle 模版 权限控制 dmi
位置: app/Providers/AuthServiceProvider.php
$permissions = \App\AdminPermission::all(); foreach ($permissions as $permission){ Gate::define($permission->name,function ($user) use($permission){ return $user->hasPermission($permission); }); }
Route::group([‘middleware‘=>‘can:systems‘],function(){});
标签:class reac efi ret .com middle 模版 权限控制 dmi
原文地址:https://www.cnblogs.com/wanghaokun/p/10175552.html