class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this->call(LaratrustSeeder::class);
}
}
How can I assign roles for the users that will be created by the seeder (with Laratrust)?
You can create user seeder by this command
php artisan make:seeder UserSeeder
if you already have it Follow this :
i hope it was useful ! ༼ つ ◕_◕ ༽つ