Ejemplo n.º 1
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     //make an administrator
     $admin = new App\User();
     $admin->email = "*****@*****.**";
     $admin->first_name = "Administrator";
     $admin->last_name = "User";
     $admin->password = Hash::make("secret");
     $admin->save();
     $admin->roles()->attach(App\Role::getAdmin());
 }