0

I am using Laravel 7 and Laratrust 6 for the authentication part. but when I run php artisan db:seed command some of following tables users,role_user,permission_user are not seeds with data. how could I fix this problem? My DatabaseSeedr.php file is as following

<?php
use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    public function run()
    {
        $this->call(LaratrustSeeder::class); 
        }
}
sign458
  • 55
  • 8

1 Answers1

1

Go to LaratrustSeeder.php file. Change 'create_users' => false, to true.
Refresh your migrations and seed again.

leugim
  • 564
  • 1
  • 5
  • 14