Solved my self by updating hanlder :)
Solution :
public function handle($command)
{
$profile = User::find($command->userId)->profile;
$profile->first_name = $command->first_name;
$profile->last_name = $command->last_name;
$profile->save();
return $profile;
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community