Closed netm closed 11 years ago
Sorry for the delay.... the auth.cpanel filter accept argument for not standard resource route. By default the filter expect a name route. So in your case Route::group(array('before' => 'auth.cpanel:project.index'), function() { Route::get('admin/project', array('as' => 'project.index', 'uses' => 'App\Controllers\ProjectController@index')); });
Hi,
So to protect a route is nice and easy, something like this in routes.php passes a route through Cpanel:
However this does not work, it returns an 'Undefined offset: 2' - any ideas why?: