/**
  * Register any other events for your application.
  *
  * @param  \Illuminate\Contracts\Events\Dispatcher $events
  * @return void
  */
 public function boot(DispatcherContract $events)
 {
     parent::boot($events);
     User::creating(function ($user) {
         if (isset($user->password)) {
             $user->password = Hash::make($user->password);
         }
     });
 }