/**
  * 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]);
 }