database/seeds/UserSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $user = \App\User::create([
            'name' => 'admin',
            'email' => 'admin@gmail.com',
            'password' => Hash::make('123'),
            'created_at' => now(),
            'updated_at' => now()
        ]);
        $user->assignRole('admin');
    }
public function run ( ) { $ user = \ App \ User :: create ( [ 'name' => 'admin' , 'email' => 'admin@gmail.com' , 'password' => Hash :: make ( '123' ) , 'created_at' => now ( ) , 'updated_at' => now ( ) ] ) ; $ user -> assignRole ( 'admin' ) ; }
Run the database seeds.
Run the database seeds .