title: Returning a controller in Laravel 5.6 route file
body: <p>I am trying to route a request to a controller method. When I do this it works:</p>
  
  <pre><code>Route::get('/path', 'controller@method');
  </code></pre>
  
  <p>I would like to set the locale before calling the controller. I tried different options and nothing works:</p>
  
  <pre><code>Route::get('/path', function(){
     desired_function();
     return action('controller@method');
  });
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Route::get('/path', function(){
     desired_function();
     return [
      'uses' =&gt; 'controller@method'
      ];
  });
  </code></pre>
  
  <p>What am I missing?</p>