Skip to content

Instantly share code, notes, and snippets.

@duikb00t
Created March 27, 2014 08:57
Show Gist options
  • Select an option

  • Save duikb00t/9803277 to your computer and use it in GitHub Desktop.

Select an option

Save duikb00t/9803277 to your computer and use it in GitHub Desktop.
routes
<?php
/**
* Routes
*
*
*/
Route::group(["before" => "guest"], function()
{
Route::any("/", [
"as" => "login",
"uses" => "UsersController@loginAction"
]);
Route::any("login", [
"as" => "login",
"uses" => "UsersController@loginAction"
]);
Route::any("request", [
"as" => "request",
"uses" => "UsersController@requestAction"
]);
Route::any("reset", [
"as" => "reset",
"uses" => "UsersController@resetAction"
]);
});
Route::group(["before" => "auth"], function()
{
Route::any("dashboard", [
"as" => "dashboard",
"uses" => "UsersController@profileAction"
]);
Route::any("logout", [
"as" => "logout",
"uses" => "UsersController@logoutAction"
]);
/** Admin **/
Route::any("new-project", [
"as" => "new-project",
"uses" => "AdminNewProjectController@newProject"
]);
/** Telemarkteer **/
/** Client **/
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment