database/seeders/UserSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        User::factory()->create([
            'first_name' => 'admin',
            'last_name' => 'admin',
            'email' => 'admin@admin.com',
            'is_admin' => 1
        ]);
        User::factory()->create([
            'first_name' => 'user',
            'last_name' => 'user',
            'email' => 'user@user.com'
        ]);
        User::factory(8)->create();
    }
public function run ( ) { User :: factory ( ) -> create ( [ 'first_name' => 'admin' , 'last_name' => 'admin' , 'email' => 'admin@admin.com' , 'is_admin' => 1 ] ) ; User :: factory ( ) -> create ( [ 'first_name' => 'user' , 'last_name' => 'user' , 'email' => 'user@user.com' ] ) ; User :: factory ( 8 ) -> create ( ) ; }
Run the database seeds.
Run the database seeds .