protected function create(array $data) { return User::create(['name' => $data['name'], 'username' => $data['username'], 'password' => bcrypt($data['password'])]); }
public function run() { User::create(['name' => 'Elsinga', 'username' => 'shark', 'password' => bcrypt('shark')]); }