In app/Http/Controllers/API/PersonalController.php conrtoller of my backend app I added loging in update method:
public function update(Request $request, $id)
{
$loggedUser = Auth::guard('api')->user();
\Log::info('PersonalController update $this->requestData::');
\Log::info(print_r( $this->requestData, true ));
$loggedUser->first_name = !empty($this->requestData['profile']['first_name']) ? $this->requestData['profile']['first_name'] : '';
and when update profile from my client @vue/cli 4.0.5 app I see logging like:
2020-04-13 03:28:10] local.INFO: PersonalController update $this->requestData:: [2020-04-13 03:28:10] local.INFO: Array ( [profile] => Array ( [first_name] => John [last_name] => Glads [phone] => 252-129-0916 [website] => [email protected] ) )
But when I make run update method from swagger I do not see any update logging string like above But I see 200 responce in swagger : https://prnt.sc/ry6con and in request : https://prnt.sc/ry6drl I suppose that I have invalid profile parameter, but I do not see why?