database/seeders/UsersTableeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $user = User::where('email', 'admin@hueshine.com')->first();
        if(!$user) {
            User::create([
                'name' => 'admin',
                'email' => 'admin@hueshine.com',
                'password' => Hash::make('admin123'),
                'role' => 'admin'
            ]);
        }
    }
public function run ( ) { $ user = User :: where ( 'email' , 'admin@hueshine.com' ) -> first ( ) ; if ( ! $ user ) { User :: create ( [ 'name' => 'admin' , 'email' => 'admin@hueshine.com' , 'password' => Hash :: make ( 'admin123' ) , 'role' => 'admin' ] ) ; } }
Run the database seeds.
Run the database seeds .