title: ReflectionException in Route.php line 335: Function () does not exist
body: <p>I'm tryin to get this grid (<a href="http://www.mariogallegos.com/tutorials/crud-custom-form" rel="nofollow">http://www.mariogallegos.com/tutorials/crud-custom-form</a>) to work in Laravel 5.3.19.</p>
  
  <p>I'm getting the exception:
  ReflectionException in Route.php line 335: Function () does not exist</p>
  
  <p>In my web.php i have the followingcode:</p>
  
  <pre><code>   Route::group(['middleware' =&gt; 'sidebarmenu'], function()
      {   
          Route::get('/home', [
      'as' =&gt; 'home',
      'uses' =&gt; 'HomeController@index'
          ]);
  
          Route::get('/users', [
         'as' =&gt; 'users', 
        GridEncoder::encodeRequestedData(new UserRepository(new User()),          Request::all())
          ]);
  
      });
  </code></pre>