message trying to get property of non-object laravel code example
Example: trying to get property 'id' of non object in laravel api
$request->user()->id or Auth::user()->id or $request["user"]["id"]
$request->user()->id or Auth::user()->id or $request["user"]["id"]