title: I get a 404 error when he should not :laravel
body: <p>I developed an API and I have a problem with this page I add it in my route and always I get a <strong>404 error</strong> I don't know why </p>
  
  <p>this my controller:</p>
  
  <pre><code>class InsertPPictureController extends Controller
  {
      public function profilepicture (Request $request)
      {
          $input = $request-&gt;all();
  
          $validator =    Validator::make($input, [
              'id_user'=&gt; 'required',
              'picture'=&gt; 'image|nullable|max:1999'
          ] );
  
          $user = User::findOrFail($request-&gt;id);
          $user_id = $request-&gt;id ;
  
          if($request-&gt;hasFile('picture')){
              // Get filename with the extension
              $filenameWithExt = $request-&gt;file('picture')-&gt;getClientOriginalName();
              // Get just filename
              $filename = pathinfo($filenameWithExt, PATHINFO_FILENAME);
              // Get just ext
              $extension = $request-&gt;file('picture')-&gt;getClientOriginalExtension();
              // Filename to store
              $fileNameToStore= $user_id.'.'.$extension;
              // Upload Image
              $path = $request-&gt;file('picture')-&gt;storeAs('public/profilepic', $fileNameToStore);
              $user-&gt;pic_path = $fileNameToStore ;
              $user-&gt;update();
  
  
          } else {
              $fileNameToStore = 'noimage';
          }
  
          return response()-&gt;json(' Success : User updated with success ',200);
      }
  }
  </code></pre>
  
  <p>and this is my api.php</p>
  
  <pre><code>Route::group(['middleware' =&gt; ['jwt.verify']], function() {
      Route::get('logout', 'AuthController@logout');
      Route::post('postcreditscards', 'CreditsCardsController@stockcards');
      Route::get('getcreditscards', 'CreditsCardsController@index');
      Route::get('getmybalance', 'MyBalanceController@index');
      Route::get('getuserdata', 'AuthController@getuser');
      Route::post('sendMoneyTransaction', 'MyBalanceController@updatebalance');
      Route::post('isvalidnumber', 'AuthController@validnumber');
     Route::post('updateuser', 'AuthController@updateuser');
       Route::post('insertprofilepicture','InsertPPictureController@profilepicture');
  
  });
  </code></pre>
  
  <p>all the pages work fine only this page doesn't work </p>
  
  <pre><code>Route::post('insertprofilepicture','InsertPPictureController@profilepicture');
  </code></pre>