title: Laravel InvalidArgumentException in RouteRegistrar.php line 75:
body: <p>I keep getting this error when trying to deploy a laravel application to a production server:</p>
  
  <p><code>InvalidArgumentException in RouteRegistrar.php line 75:</code></p>
  
  <pre><code>in RouteRegistrar.php line 75
  at RouteRegistrar-&gt;attribute('after', object(AfterFilter)) in Router.php line 1085
  at Router-&gt;__call('after', array(object(AfterFilter))) in BootProviders.php line 17
  at Router-&gt;after(object(AfterFilter)) in BootProviders.php line 17
  at Application-&gt;boot() in BootProviders.php line 17
  at BootProviders-&gt;bootstrap(object(Application)) in Application.php line 208
  at Application-&gt;bootstrapWith(array('Illuminate\\Foundation\\Bootstrap\\LoadEnvironmentVariables', 'Illuminate\\Foundation\\Bootstrap\\LoadConfiguration', 'Illuminate\\Foundation\\Bootstrap\\HandleExceptions', 'Illuminate\\Foundation\\Bootstrap\\RegisterFacades', 'Illuminate\\Foundation\\Bootstrap\\RegisterProviders', 'Illuminate\\Foundation\\Bootstrap\\BootProviders')) in Kernel.php line 160
  at Kernel-&gt;bootstrap() in Kernel.php line 144
  at Kernel-&gt;sendRequestThroughRouter(object(Request)) in Kernel.php line 116
  at Kernel-&gt;handle(object(Request)) in index.php line 54
  </code></pre>
  
  <p>The strange thing is that I do not get this error on my local machine. The PHP version of my machine and the production server is nearly identical (5.6.25 on the server and 5.6.26 on my machine).</p>
  
  <p>Does anyone have any idea what could be causing this error?</p>