laravel-roles: Php artisan migrate and seed not working accordingly
I have fresh install Laravel 5.8 and then I change the inside of RolesTableSeeder.php
into this:
and then when I run the php artisan migrate:fresh --seed
, it run the seed on different files
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (5 by maintainers)
There’s no error, when I remove the following lines from DatabaseSeeder.php:
use Database\Seeds\PermissionsTableSeeder; use Database\Seeds\RolesTableSeeder; use Database\Seeds\ConnectRelationshipsSeeder;
FYI - Laravel version is 6.x.
You disable those in the config file:
https://github.com/jeremykenedy/laravel-roles/blob/master/readme.md#environment-file