Trying to get property 'id' of non-object laravel on search result 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"]