Пример #1
0
 /**
  * Execute the command.
  *
  * @param ProfilerContract $profiler
  */
 public function handle(ProfilerContract $profiler)
 {
     $profile = UserProfile::create(['user_id' => $this->user->id]);
     Bus::dispatch(new UpdateUserProfile($profile, $this->data));
     return $profile;
 }
Пример #2
0
 /**
  * Execute the command.
  *
  * @return void
  */
 public function handle()
 {
     return UserProfile::create(['user_id' => $this->user->id]);
 }