/** * Run the database seeds. * * @return void */ public function run() { \Scrobot\BackendAuth\User::create(['username' => 'administrator', 'password' => \Hash::make('crhj,jn91'), 'email' => '*****@*****.**', 'level' => 0]); }
/** * Create a new user instance after a valid registration. * * @param array $data * @return User */ protected function create(array $data) { return BackUser::create(['name' => $data['name'], 'email' => $data['email'], 'password' => bcrypt($data['password'])]); }
public function postStore(UserStorePostRequest $request) { User::create($request->all()); return back()->withMsg('Пользователь успешно добавлен'); }