title: Laravel 7 Trying to get property 'id' of non-object
body: <p>When I trying upload image as profile,
  and then I get that message Trying to get property 'id' of non-object</p>
  <pre><code>public function update_image(Request $request)
      {
          $request-&gt;validate([
              'image' =&gt; 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2040',
          ]);
          
          $user = Auth::user();
          $imgName = $user-&gt;id.'_img'.time().'.'.request()-&gt;image-&gt;getClientOriginalExtension();
          
          $request-&gt;image-&gt;storeAs('images', $imgName);
          
          $request-&gt;image = $imgName;
          $user-&gt;save();
          
          return back()
              -&gt;with('sucess', 'You have successful upload!');
      }
  </code></pre>
  <p>How can I do it ?</p>
  <blockquote>
  <p>And my route</p>
  </blockquote>
  <pre><code>Route::post('profile/img', 'Api\UserController@update_image');
  </code></pre>