Untitled
unknown
plain_text
a year ago
1.4 kB
2
Indexable
Never
PS C:\xampp\htdocs\UMS_backend> php artisan permission:set System updating... ErrorException Undefined array key "controller" at C:\xampp\htdocs\UMS_backend\app\Console\Commands\permission.php:219 215▕ if (isset($action['as']) && isset($action['middleware']) && is_array($action['middleware']) && ( in_array('user.access.web', $action['middleware']))) { 216▕ 217▕ $route = explode('.', $action['as']); //route name in chunks dashboard.index = [dashboard, index] 218▕ ➜ 219▕ $controllerActionName = class_basename($action['controller']);//controller name and function name inside the controller 220▕ 221▕ if (!in_array($controllerActionName, $allRolePermissions)) { 222▕ $controllerAction = explode('@', $controllerActionName); //controller name and function name inside the controller 223▕ 1 C:\xampp\htdocs\UMS_backend\app\Console\Commands\permission.php:219 Illuminate\Foundation\Bootstrap\HandleExceptions::Illuminate\Foundation\Bootstrap\{closure}("Undefined array key "controller"", "C:\xampp\htdocs\UMS_backend\app\Console\Commands\permission.php") 2 C:\xampp\htdocs\UMS_backend\app\Console\Commands\permission.php:183 App\Console\Commands\permission::createRolePermission()