Beispiel #1
0
 public static function boot()
 {
     parent::boot();
     static::created(function ($topic) {
         SiteStatus::newUser();
     });
 }
 /**
  * Create a new user instance after a valid registration.
  *
  * @param  array  $data
  * @return User
  */
 protected function create(array $data)
 {
     SiteStatus::newUser();
     return User::create(['name' => $data['name'], 'email' => $data['email'], 'password' => bcrypt($data['password'])]);
 }