private function SeedUsers() { User::create(['id' => 2, 'name' => 'Dummy User', 'email' => '*****@*****.**', 'password' => Hash::make('123456')]); }
public function run() { $this->command->info('User table will now be seeded...'); User::create(['id' => 1, 'name' => 'Administrator', 'email' => '*****@*****.**', 'password' => bcrypt('123456')]); $this->command->info('User table has been seeded!'); }
/** * Create a new user instance after a valid registration. * * @param array $data * @return User */ public function create(array $data) { return User::create(['name' => $data['name'], 'email' => $data['email'], 'password' => $data['password']]); }