title: Laravel 5 - Kodeine ACL using custom resource method inside route protection
body: <p>I'm a newbie to Laravel. I am using Kodeine ACL management for Laravel 5. Generated resourceful controllers and routes. I also added custom method for resourceful controller named "profile"</p>
  
  <p>I am not able to apply ACL if I include custom method if I do this:</p>
  
  <pre><code>Route::get('users/profile', UsersController@profile);
  
  Route::group(['middleware' =&gt; ['auth', 'acl'],
            'is' =&gt; 'worker',
            'protect_alias' =&gt; 'worker.user',
            'protect_methods' =&gt; [
                  'create' =&gt; ['create', 'store'],
                  'store'  =&gt; ['create', 'store'],
                  'read'   =&gt; ['index', 'show'],
                  'view'   =&gt; ['index', 'show'],
                  'edit'   =&gt; ['edit', 'update', 'profile'],
                  'update' =&gt; ['edit', 'update', 'profile'],
                  'delete' =&gt; ['destroy'],
              ]
            ],
  function () {
      Route::resource('users', 'UsersController');
  });
  </code></pre>
  
  <p>The above code does not applying the ACL to profile method
  But if I comment line #1, it applies the ACL, but it is not directing to the profile method [ie $next($request)] doesn't seem to work</p>
  
  <p>Please advise if I am wrong and how to achieve this.</p>
  
  <p>Thanks!</p>