title: axios: post a get request with parameters in Laravel
body: <p>I'm trying to post a GET request to a laravel routes but I'm getting a 404 (Not Found)</p>
  
  <p>ajax call </p>
  
  <pre><code>   axios.get('/statisticsJSON', {
          params: {
            annee: 2017,
            mois: 06,
            jour: 15,
          }
        })
        .then(function (response) {
          console.log('Les donnees via ajax');
          console.log( response.data);
        })
        .catch(function (error) {
          console.log(error);
        });
  </code></pre>
  
  <p>web.php</p>
  
  <pre><code>Route::get('/statisticsJSON/{annee}/{mois}/{jour}', 'EmploiController@showStatisticsJSON')
     -&gt;name('statsJSON')
     -&gt;where('annee', '^(19|20)\d{2}$')
     -&gt;where('mois', '^(19|20)\d{2}$')
     -&gt;where('jour', '^(19|20)\d{2}$');
  </code></pre>
  
  <p>controller</p>
  
  <pre><code>public function showStatisticsJSON(Request $request, $annee=null, $mois=null, $jour=null)
  {
      //
      $annee = $request-&gt;get('annee');
      $mois = $request-&gt;get('mois');
      $jour = $request-&gt;get('jour');
      $emplois = Emploi::whereYear('POSTDATE', '=', $annee)
            -&gt;whereMonth('POSTDATE', '=', $mois)
            -&gt;whereDay('POSTDATE', '=', $jour)
            -&gt;get();
      return response()-&gt;json(emplois ,200,[],JSON_PRETTY_PRINT);
  }
  </code></pre>
  
  <p>link generated</p>
  
  <pre><code>http://localhost:8000/statisticsJSON?annee=2017&amp;mois=6&amp;jour=15
  </code></pre>