server/database/seeders/DatabaseSeeder.php
/**
     * Seed the application's database.
     *
     * @return void
     */
Seed the application's database.
@return void
Seed the application ' s database . @return void
public function run()
    {
        $user = new User();
        $user->username = 'bplaat';
        $user->email = 'bastiaan.v.d.plaat@gmail.com';
        $user->password = Hash::make('admin123');
        $user->role = User::ROLE_ADMIN;
        $user->save();
    }
public function run ( ) { $ user = new User ( ) ; $ user -> username = 'bplaat' ; $ user -> email = 'bastiaan.v.d.plaat@gmail.com' ; $ user -> password = Hash :: make ( 'admin123' ) ; $ user -> role = User :: ROLE_ADMIN ; $ user -> save ( ) ; }
Seed the application's database.
Seed the application ' s database .
// Create admin account