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