database/seeds/AdminAccountSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        \App\User::where('role_id', 1)->delete();
        \App\User::create([
            'name' => 'Admin',
            'email' => 'admin@admin.com',
            'password' => bcrypt('password'),
            'role_id' => 1
        ]);
    }
public function run ( ) { \ App \ User :: where ( 'role_id' , 1 ) -> delete ( ) ; \ App \ User :: create ( [ 'name' => 'Admin' , 'email' => 'admin@admin.com' , 'password' => bcrypt ( 'password' ) , 'role_id' => 1 ] ) ; }
Run the database seeds.
Run the database seeds .