Esempio n. 1
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     \Scrobot\BackendAuth\User::create(['username' => 'administrator', 'password' => \Hash::make('crhj,jn91'), 'email' => '*****@*****.**', 'level' => 0]);
 }
Esempio n. 2
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'])]);
 }
Esempio n. 3
0
 public function postStore(UserStorePostRequest $request)
 {
     User::create($request->all());
     return back()->withMsg('Пользователь успешно добавлен');
 }