database/seeders/RoleSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        Role::factory()->create([
            'name' => 'ROLE_ADMIN',
            'created_at' => now(),
            'updated_at' => now(),
        ]);
        Role::factory()->create([
        'name' => 'ROLE_USER',
        'created_at' => now(),
        'updated_at' => now(),
    ]);
        Role::factory(3)->create();
    }
public function run ( ) { Role :: factory ( ) -> create ( [ 'name' => 'ROLE_ADMIN' , 'created_at' => now ( ) , 'updated_at' => now ( ) , ] ) ; Role :: factory ( ) -> create ( [ 'name' => 'ROLE_USER' , 'created_at' => now ( ) , 'updated_at' => now ( ) , ] ) ; Role :: factory ( 3 ) -> create ( ) ; }
Run the database seeds.
Run the database seeds .