Skip to content

Instantly share code, notes, and snippets.

@ryantology
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryantology/10304662 to your computer and use it in GitHub Desktop.
Save ryantology/10304662 to your computer and use it in GitHub Desktop.
Laravel Admin Routing
<?php
// routes.php
Route::group(array('before' => 'check_auth', 'prefix' => 'admin', 'namespace' => 'Admin'), function() {
Route::resource('ideas', 'IdeasController');
});
// app/Controllers/Admin/IdeasController.php
namespace Admin;
class IdeasController extends \IdeasController {
public function index() {
return "Admin ideas index";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment