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()
    {
        $users = [
            [
                'name'              => 'Admin Test',
                'email'             => 'admin@test.com',
                'email_verified_at' => now(),
                'password'          => Hash::make('admin123'),
                'remember_token'    => Str::random(10),
            ],
        ];
        foreach ($users as $key => $value) {
            User::create($value);
        }
    }
public function run ( ) { $ users = [ [ 'name' => 'Admin Test' , 'email' => 'admin@test.com' , 'email_verified_at' => now ( ) , 'password' => Hash :: make ( 'admin123' ) , 'remember_token' => Str :: random ( 10 ) , ] , ] ; foreach ( $ users as $ key => $ value ) { User :: create ( $ value ) ; } }
Run the database seeds.
Run the database seeds .