Too few arguments to function Spatie\Permission\Models\Role::scopePermission() #2144
-
Good morning... when executing migrate --seed in the terminal it throws me this error... I don't know what to do anymore... thanks in advance for the help.. Iam using Laravel 9 ArgumentCountError Too few arguments to function Spatie\Permission\Models\Role::scopePermission(), 1 passed in C:\xampp\htdocs\SGI\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php on line 1507 and exactly 2 expected at C:\xampp\htdocs\SGI\vendor\spatie\laravel-permission\src\Traits\HasPermissions.php:71 1 C:\xampp\htdocs\SGI\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php:1507 2 C:\xampp\htdocs\SGI\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php:1296 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
migrate --seed
this package don't use that, so, you write something wrong, impossible to know what, but it is working for everyoneIf you want more help make a Example App on a minimal application in a clean installation where you demonstrate the problem, surely when you do that you will find what you configured wrong, or someone will help you to find it
https://spatie.be/docs/laravel-permission/v5/basic-usage/new-app#content-initial-setup