database/seeders/UserTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $user = User::factory(5)->create();
        $user = User::first();
        $user->name = 'Administrator';
        $user->email = 'admin@gmail.com';
        $user->role_id = 1;
        $user->save();
    }
public function run ( ) { $ user = User :: factory ( 5 ) -> create ( ) ; $ user = User :: first ( ) ; $ user -> name = 'Administrator' ; $ user -> email = 'admin@gmail.com' ; $ user -> role_id = 1 ; $ user -> save ( ) ; }
Run the database seeds.
Run the database seeds .