title: Argument 1 passed must be an instance of App\Request, instance of Illuminate\Http\Request given
body: <p>I have created a method in my User model to upload a poster (with intervention)for the user:</p>
  
  <pre><code>/**
  * Store user's poster.
  */
  public static function storePoster(Request $request) 
  {
      if($request-&gt;hasFile('posterUpload')){
  
          $poster = $request-&gt;file('posterUpload');
  
          $filename = time() . '.'. $poster-&gt;getClientOriginalExtension();
  
          Image::make($poster)-&gt;resize(356,265)-&gt;save(public_path('/uploads/posters/'.$filename));
  
          $check = Setting_user::where([
                  ['user_id', '=' ,Auth::user()-&gt;id],
                  ['setting_id','=', 2],
          ])-&gt;first();
  
          if(!$check)
          {
              $setting = new Setting_user();
              $setting-&gt;user_id = Auth::user()-&gt;id;
              $setting-&gt;setting_id = 2;
              $setting-&gt;value = $filename;
              $setting-&gt;save();
              return back();
          }
  
          $check-&gt;value = $filename;
          $check-&gt;update();
          return back();
  
      }
  
  }
  </code></pre>
  
  <p>In my UserController I have another method which call the static method created in the User model:</p>
  
  <pre><code>/**
  * Store user's poster.
  */
  public function poster(Request $request) 
  {
       User::storePoster($request);
  
  }
  </code></pre>
  
  <p>This is my route:</p>
  
  <pre><code>Route::post('/user-profile/store/poster', 'UserController@poster');
  </code></pre>
  
  <p>And this is the error I get when I navigate to "/user-profile/store/poster" :</p>
  
  <pre><code>Argument 1 passed to App\User::storePoster() must be an instance of App\Request, instance of Illuminate\Http\Request given, called in C:\xampp\htdocs\laravel\laravel-paper-dashboard\app\Http\Controllers\UserController.php on line 29 and defined
  </code></pre>
  
  <p>Although if I move all the logic from the model and put it in my UserController it works fine.
  Any idea why?</p>
  
  <p>Thanks in advance.</p>