title: Using middleware route filer in Entrust for Laravel
body: <p>I have used <a href="https://github.com/Zizaco/entrust#short-syntax-route-filter" rel="nofollow">Entrust</a> for laravel, everything works fine until I used the middleware route filter.</p>
  
  <p>Like I said everything works fine apart from the middlware filter. I have added the routemiddleware array to kernel.  So this is basically  what the filter looks like, same thing that is found in the docs:</p>
  
  <pre><code>Route::group(['prefix' =&gt; 'admin', 'middleware' =&gt; ['role:admin']], function() {
      Route::get('/', 'AdminController@welcome');
      Route::get('/manage', ['middleware' =&gt; ['permission:manage-admins'], 'uses' =&gt; 'AdminController@manageAdmins']);
  });
  </code></pre>
  
  <p>But I've got this error:</p>
  
  <blockquote>
    <p>ReflectionException in Container.php line 779: Class role:admin does
    not exist</p>
  </blockquote>