| | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond to | and give it the Closure to execute when that URI is requested. | */ Route::get('/', function () { // return View::make('hello'); return View::make('front_end/login'); }); //Route::get('post/single', function() //{ // return View::make('post/single'); //}); Route::post('login/submit', array('uses' => 'LoginController@authenticate', 'as' => 'login/submit')); //Route::get('post/single','PostController@single'); Route::get('post/single', array('uses' => 'PostController@single', 'as' => 'post/singl', 'before' => 'auth')); //Route::get('post/listing', array('uses' => 'PostController@listing', 'as' => 'post/listing')); Route::get('post/{id}/{name}', array('uses' => 'PostController@single', 'as' => 'post/singl'))->where('id', '[0-9]+'); Route::get('template', ['as' => 'home', function () { return View::make('template/header'); }]); Route::get('login', function () { return View::make('front_end/login'); }); Route::group(array('before' => 'auth'), function () { Route::Post('passwordSubmit', array('uses' => 'LoginController@changePasswordSubmit', 'as' => 'passwordSubmit')); Route::get('front_end/changePassword', array('uses' => 'LoginController@changePassword', 'as' => 'front_end/changePassword')); Route::get('front_end/logout', array('uses' => 'LoginController@logout', 'as' => 'front_end/logout')); Route::get('front_end/home', array('uses' => 'CompanyType@showAll', 'as' => 'front_end/home')); });
<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond to | and give it the controller to call when that URI is requested. | */ Route::get('auth/login', 'Auth\\AuthController@getLogin'); Route::post('auth/login', 'Auth\\AuthController@postLogin'); Route::get('auth/logout', 'Auth\\AuthController@getLogout'); Route::get('/', 'ConcertController@index'); // index Route::post('/{page}', 'ConcertController@getPage'); //pagination Route::post('/', 'ConcertController@filter'); // filtering Route::get('/concert/{concert}', 'ConcertController@concert'); // concert page Route::get('admin', 'Admin@index'); // index Route::Post('admin/delete/{concert}', 'Admin@destroy'); Route::get('admin/edit/{concert}', 'Admin@edit'); // http://dev-node/laravel/codepi_tt/resources/assets/images/logo_codepi.png //http://dev-node/laravel/codepi_tt/public/resources/assets/images/logo_codepi.png
Route::post('/ajax/registration', array('as' => 'ajaxRegistration', 'uses' => 'AjaxController@post_registration', 'before' => 'csrf')); Route::post('/ajax/associate/registration', array('as' => 'ajaxAssociateRegistration', 'uses' => 'AjaxController@post_associateRegistration', 'before' => 'csrf')); Route::post('/ajax/login', array('as' => 'ajaxLogin', 'uses' => 'AjaxController@post_login')); Route::post('/ajax/logout', array('as' => 'ajaxLogout', 'uses' => 'AjaxController@post_logout', 'before' => 'auth')); Route::post('/ajax/vaedit', array('as' => 'ajaxVAEdit', 'uses' => 'AjaxController@post_vaedit', 'before' => 'auth|csrf')); Route::post('/ajax/newticket', array('as' => 'ajaxNewTicket', 'uses' => 'AjaxController@post_newticket', 'before' => 'auth|csrf')); Route::post('/ajax/closeticket', array('as' => 'ajaxCloseTicket', 'uses' => 'AjaxController@post_closeticket', 'before' => 'auth')); Route::post('/ajax/reopenticket', array('as' => 'ajaxReopenTicket', 'uses' => 'AjaxController@post_reopenticket', 'before' => 'auth')); Route::post('/ajax/replyticket', array('as' => 'ajaxReplyTicket', 'uses' => 'AjaxController@post_replyticket', 'before' => 'auth|csrf')); Route::post('/ajax/deletebanner', array('as' => 'ajaxDeleteBanner', 'uses' => 'AjaxController@post_deletebanner', 'before' => 'auth|csrf')); Route::post('/ajax/checkimagelinkback', array('as' => 'ajaxCheckImageLinkBack', 'uses' => 'AjaxController@post_checkimagelinkback')); Route::post('/ajax/getvasbycategory', array('as' => 'ajaxGetVasByCategory', 'uses' => 'AjaxController@post_getvasbycategory')); Route::post('/ajax/searchvas', array('as' => 'ajaxSearchVAs', 'uses' => 'AjaxController@post_searchvas')); Route::post('/ajax/newguestticket', array('as' => 'ajaxnewguestticket', 'uses' => 'AjaxController@post_newguestticket', 'before' => 'csrf')); Route::post('/ajax/guestfindticket', array('as' => 'ajaxguestfindticket', 'uses' => 'AjaxController@post_guestfindticket', 'before' => 'csrf')); Route::Post('/ajax/guest/submitticket', array('as' => 'ajaxguestsubmitreply', 'uses' => 'AjaxController@post_guestsubmitticket', 'before' => 'csrf')); Route::post('/ajax/guest/closeticket', array('as' => 'ajaxguestcloseticket', 'uses' => 'AjaxController@post_guestcloseticket', 'before' => 'csrf')); Route::post('/ajax/guest/reopenticket', array('as' => 'ajaxguestreopenticket', 'uses' => 'AjaxController@post_guestreopenticket', 'before' => 'csrf')); Route::post('/ajax/forgotpass', array('as' => 'ajaxforgotpass', 'uses' => 'AjaxController@post_forgotpass', 'before' => 'csrf')); //Pages //GET Route::get('/va', array('as' => 'va', 'uses' => 'VaController@get_va', 'before' => 'auth')); Route::get('/click/{id}', array('as' => 'click', 'uses' => 'ClickController@get_click')); Route::get('maintenance', array('as' => 'maintenance', 'uses' => 'IndexController@get_maintenance')); //POST Route::post('/va/uploadbanner', array('as' => 'uploadbanner', 'uses' => 'VaController@post_uploadbanner', 'before' => 'auth|csrf')); //----------------------------------------------------------------- //- //-- //----- //----------
Route::post('modpack-alias/add', ['as' => 'modpack_alias_add', 'uses' => 'ModpackAliasController@postAdd']); Route::get('modpack/{version}/{slug}/aliases', ['as' => 'modpack_alias_add', 'uses' => 'ModpackAliasController@getAliases']); //Modpack Tags Route::get('tag/modpack/add', ['as' => 'modpack_tag', 'uses' => 'ModpackTagController@getAdd']); Route::post('tag/modpack/add', ['as' => 'modpack_tag', 'uses' => 'ModpackTagController@postAdd']); Route::get('tag/modpack/edit/{id}', ['as' => 'modpack_tag', 'uses' => 'ModpackTagController@getEdit']); Route::post('tag/modpack/edit/{id}', ['as' => 'modpack_tag', 'uses' => 'ModpackTagController@postEdit']); //Server Tags Route::get('tags/server', ['as' => 'server_tag', 'uses' => 'ServerTagController@getTags']); Route::get('tag/server/add', ['as' => 'server_tag', 'uses' => 'ServerTagController@getAdd']); Route::post('tag/server/add', ['as' => 'server_tag', 'uses' => 'ServerTagController@postAdd']); Route::get('tag/server/edit/{id}', ['as' => 'server_tag', 'uses' => 'ServerTagController@getEdit']); Route::post('tag/server/edit/{id}', ['as' => 'server_tag', 'uses' => 'ServerTagController@postEdit']); //Users Route::get('user/permissions/{id}', ['as' => 'permissions_edit', 'uses' => 'UserController@getUserPermissions']); Route::Post('user/permissions/{id}', ['as' => 'permissions_edit', 'uses' => 'UserController@postUserPermissions']); //Youtube Route::get('youtube/add', ['as' => 'youtube_add', 'uses' => 'YoutubeController@getadd']); Route::post('youtube/add', ['as' => 'youtube_add', 'uses' => 'YoutubeController@postAdd']); //Imports Route::get('mod/import', ['as' => 'mod_import', 'uses' => 'ImportController@getStartImport']); Route::post('mod/import', ['as' => 'mod_import', 'uses' => 'ImportController@postStartImport']); Route::get('mod/import/{id}', ['as' => 'mod_import', 'uses' => 'ImportController@getImportMod']); Route::post('mod/import/{id}', ['as' => 'mod_import', 'uses' => 'ImportController@postImportMod']); Route::get('mod/import/{id}/author/{author_id?}', ['as' => 'mod_import', 'uses' => 'ImportController@getImportAuthor']); Route::post('mod/import/{id}/author/{author_id}', ['as' => 'mod_import', 'uses' => 'ImportController@postImportAuthor']); //Cache Route::get('/cache/clear/{tag?}', ['as' => 'cache_clear', 'uses' => 'AdminController@getClearCache']); //Misc Route::get('memcache/stats', 'AdminController@getMemcacheStats'); /*
* User Inbox */ Route::get('/user/inbox', array('as' => 'user-inbox', 'uses' => 'UserClassController@getInbox')); /* * User Inbox */ Route::get('/user/inbox', array('as' => 'user-inbox', 'uses' => 'UserClassController@getInbox')); /* * User Assignments */ Route::get('/user/assignments', array('as' => 'user-assignments', 'uses' => 'UserClassController@getAssignments')); /* * School Events */ Route::get('/user/events', array('as' => 'user-events', 'uses' => 'UserClassController@getEvents')); /** * Ajax Api's */ /** * APi for Attendance */ Route::Post('/user/attendance/new/application/leave', array('as' => 'user-attendance-new-attendance-leave', 'uses' => 'UserClassController@postNewLeaveApplication')); /* * Api to get All the Classes to a Stream (post) */ Route::Post('/user/classes/from/stream/id', array('as' => 'user-get-classes-from-stream-id', 'uses' => 'UserClassController@postGetClassesFromStreamId')); /* * Api to get section by Class (post) */ Route::Post('user/get/sections/from/class/id', array('as' => 'user-get-sections-from-class-id', 'uses' => 'UserClassController@postGetSections')); });
* SignOUt (get) */ Route::get('/sign/out', array('as' => 'teacher-sign-out', 'uses' => 'TeacherLoginController@getSignOut')); /* * User Welcome Settings (get) */ Route::get('/welcome/settings', array('as' => 'teacher-welcome-settings', 'uses' => 'TeacherLoginController@getWelcomeSettings')); /* * Admin Home (get) */ Route::get('/home', array('as' => 'teacher-home', 'uses' => 'TeacherLoginController@getTeacherHome')); /* * Admin Profile (get) */ Route::get('/profile', array('as' => 'teacher-profile', 'uses' => 'TeacherAccountController@getTeacherProfile')); /* * Teacher Attendance (get) */ Route::get('/teacher/attendance', array('as' => 'teacher-attendance', 'uses' => 'TeacherController@getAttendance')); /* * School All settings (get) */ /* * Set Initial School Session */ Route::get('/school/set/sessions', array('as' => 'teacher-school-set-sessions', 'uses' => 'TeacherLoginController@getSchoolSessions')); /* * Set Initial School Session (post) */ Route::Post('/school/set/sessions/post', array('as' => 'teacher-school-set-sessions-post', 'uses' => 'TeacherLoginController@postSetSchoolSessions')); });
<?php Route::group(['before' => 'guest'], function () { /* * Thankyou page after registering (get) */ Route::get('/account/thankyou/for/registering', array('as' => 'account-thankyou-for-registering', 'uses' => 'ErrorsAndThankYouController@getThankYouForRegistering')); /* * User Forgot password (get) */ Route::get('/account/email', array('as' => 'account-email', 'uses' => 'ErrorsAndThankYouController@getEmail')); /* * Validate Admin By school code and teacher code */ Route::Post('/school/validation', array('as' => 'mobile-user-school-validation-post', 'uses' => 'SchoolController@postValidateSchool')); });
| | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond to | and give it the Closure to execute when that URI is requested. | */ //Route::get('/', function() //{ // return View::make('hello'); //}); Route::get('/', array("as" => "home", "uses" => 'HomeController@index')); Route::post('/', array("as" => 'homepost', "uses" => "HomeController@postIndex")); Route::get('pages/home', 'HomeController@index'); Route::get('pages/{permalink}', array('as' => 'pages', 'uses' => 'HomeController@getPages')); Route::get('posts/{permalink}', array('as' => 'pages', 'uses' => 'HomeController@getPages')); Route::Post('pages/{permalink}', array('as' => 'pages', 'uses' => 'HomeController@postPages')); Route::get("pages/contactus", array("as" => "cont", "uses" => "HomeController@getContact")); Route::get("product/details/{path}", array("as" => "proddetail", "uses" => "HomeController@getProduct")); Route::post("product/details/{path}", array("as" => "postproddetail", "uses" => "HomeController@postProduct")); Route::get("product/category/{path}", array("as" => "catalogue", "uses" => "HomeController@getCatalogue")); Route::post("product/category/{path}", array("as" => "postcatalogue", "uses" => "HomeController@postCatalogue")); Route::get("product/brands/{path}", array("as" => "brand", "uses" => "HomeController@getBrand")); Route::post("product/brands/{path?}", array("as" => "postbrands", "uses" => "HomeController@postCatalogue")); Route::get("/catalog/{search?}", array("as" => "search", "uses" => "HomeController@getSearch")); Route::post("/catalog/{search?}", array("as" => "postsearch", "uses" => "HomeController@postCatalogue")); Route::get("register", array("as" => "register", "uses" => "HomeController@getRegister")); Route::get("cart", array("as" => "cart", "uses" => "HomeController@getCart")); Route::post("cart", array("as" => "postcart", "uses" => "HomeController@postCart")); Route::get("checkout", array("as" => "checkout", "uses" => "HomeController@getCheckout")); Route::post("checkout", array("as" => "postcheckout", "uses" => "HomeController@postCheckout")); Route::get("success", array("as" => "success", "uses" => "HomeController@getSuccess"));
| and give it the controller to call when that URI is requested. | */ // Authentication routes... Route::get('auth/login', 'Auth\\AuthController@getLogin'); Route::post('auth/login', 'Auth\\AuthController@postLogin'); Route::get('auth/logout', 'Auth\\AuthController@getLogout'); // Registration routes... Route::get('auth/register', 'Auth\\AuthController@getRegister'); Route::post('auth/register', 'Auth\\AuthController@postRegister'); // Password reset link request routes... Route::get('auth/password', function () { return view('/auth/password'); }); Route::get('password/email', 'Auth\\PasswordController@getEmail'); Route::post('password/email', 'Auth\\PasswordController@postEmail'); // Password reset routes... Route::get('password/reset/{token}', 'Auth\\PasswordController@getReset'); Route::post('password/reset', 'Auth\\PasswordController@postReset'); Route::group(['middleware' => 'auth'], function () { Route::get('/', function () { return redirect('/home'); }); Route::get('/home', 'DashboardController@index'); Route::get('/tasks', 'TasksController@index'); Route::get('/tasks/remove/{id}', 'TasksController@destroy'); Route::post('/tasks', 'TasksController@store'); Route::get('/profile/', 'UserController@show'); Route::Post('/profile/', 'UserController@store'); Route::get('/alerts/', 'AlertController@index'); });
/** * Check if Current Session is set */ Route::Post('/check/current/session/is/set', array('as' => 'admin-check-current-session-set', 'uses' => 'Admin\\AdminSchoolSettingsController@checkIfCurrentSessionSet')); /** * Get All School Teachers (get) */ Route::get('/school/teachers', array('as' => 'admin-school-teachers', 'uses' => 'Admin\\AdminTeacherSettingsController@getSchoolTeachers')); /** * Get All the Teachers (Post) */ Route::Post('/get/all/teachers', array('as' => 'admin-all-teachers', 'uses' => 'Admin\\AdminTeacherSettingsController@postGetAllTheTeachersRegisteredToSchool')); //-------------------------------------school students ------------------------------------------------- /** * Get All School Students (get) */ Route::get('/school/students', array('as' => 'admin-school-students', 'uses' => 'Admin\\AdminStudentSettingsController@getSchoolStudents')); /** * Get All the Students (Post) */ Route::Post('/get/all/students', array('as' => 'admin-all-students', 'uses' => 'Admin\\AdminStudentSettingsController@postGetAllTheStudentsRegisteredToSchool')); //------------------------------------------------------school timetable----------------------------------- /** * Get School Time Table (get) */ Route::get('/school/time/table', array('as' => 'admin-school-time-table', 'uses' => 'Admin\\AdminTimeTableController@getTimeTable')); /** * Get Admin Profile (get) */ Route::get('/profile', array('as' => 'admin-profile', 'uses' => 'Admin\\AdminAccountController@getProfile')); });
/* * User SignIn Account (get) */ Route::get('/account/sign/in', array('as' => 'account-user-sign-in', 'uses' => 'LoginAndRegisterController@getSignIn')); /* * User SignIn Account (Post) */ Route::Post('/account/sign/in', array('as' => 'account-user-sign-in-post', 'uses' => 'LoginAndRegisterController@postSignIn')); /* * User Forgot password (get) */ Route::get('/account/retrieve/password', array('as' => 'account-user-retrieve-password', 'uses' => 'LoginAndRegisterController@getRetrievePassword')); /* * User Forgot password (get) */ Route::Post('/account/retrieve/password/post', array('as' => 'account-user-retrieve-password-post', 'uses' => 'LoginAndRegisterController@postRetrievePassword')); /* * User Activate Account (get) */ Route::get('/account/{userId}/activate/{code}', array('as' => 'account-user-activate', 'uses' => 'LoginAndRegisterController@getActivate')); /* * User Recover Account (get) */ Route::get('/account/{userId}/recover/{code}', array('as' => 'account-user-recover', 'uses' => 'LoginAndRegisterController@getRecover')); /* * User Recover Account (get) */ Route::post('/account/recover', array('as' => 'account-user-recover-post', 'uses' => 'LoginAndRegisterController@postRecover')); /* * User Log Out (get) */
Route::get('auth/register', 'Auth\\AuthController@getRegister'); Route::post('auth/register', 'Auth\\AuthController@postRegister'); Route::get('home', 'HomeController@index'); Route::get('contact', 'ContactController@index'); Route::get('recherche', 'RechercheController@index'); Route::post('recherche', 'RechercheController@search'); Route::get('admin', 'Admin\\AdminController@index'); // Test Route::get('test', 'TestController@index'); // Medicament routes Route::get('medicaments/fiche/{id}', 'Medicaments\\MedicamentsController@show'); Route::get('medicaments/add', 'Medicaments\\MedicamentsController@create'); Route::get('medicaments/update/{id}', 'Medicaments\\MedicamentsController@ShowUpdate'); Route::post('medicaments/update/{id}', 'Medicaments\\MedicamentsController@update'); Route::post('medicaments/new', 'Medicaments\\MedicamentsController@news'); //Route::delete('medicaments/{id}', 'Medicaments\MedicamentsController@destroy'); Route::group(['prefix' => 'api'], function () { Route::post('login', 'Api\\AuthController@login'); Route::post('register', 'Api\\AuthController@register'); Route::post('search', 'Api\\SearchController@search'); Route::get('home', 'Api\\HomeController@index'); Route::get('fiche/{id}', 'Api\\MedicamentController@fiche'); Route::get('admin/{user_email}', 'Api\\MedicamentController@show'); Route::Post('add', 'Api\\MedicamentController@add'); Route::group(['middleware' => ['jwt.auth', 'jwt.refresh']], function () { Route::post('logout', 'Api\\AuthController@logout'); Route::get('test', function () { return response()->json(['foo' => 'bar']); }); }); });
Route::get('update_department={id}', "Administrator@get_update_department"); Route::post('update_department={id}', "Administrator@post_update_department"); ///////////////////////////////////////////////// //Courses Route::get('add_course', "Administrator@get_add_course"); Route::Post('add_course', "Administrator@post_add_course"); Route::get('view_courses', "Administrator@get_view_course"); Route::get('delete_course={id}', "Administrator@delete_course"); Route::get('update_course={id}', "Administrator@get_update_course"); Route::post('update_course={id}', "Administrator@post_update_course"); //////////////////////////// Student ////////////////////////////////////// //Student Route::get('add_id', "Administrator@get_student_id"); Route::post('Add_ID', "Administrator@post_student_id"); Route::get('add_student', "Administrator@get_add_student"); Route::Post('add_student', "Administrator@post_add_student"); Route::get('view_student', "Administrator@view_student"); Route::get('delete_student={id}', "Administrator@delete_student"); Route::get('edit_student={id}', "Administrator@get_update_student"); Route::post('edit_student={id}', "Administrator@post_update_student"); ///////////////////////////////////////////////// //Teacher Route::get('add_teacher', "Administrator@get_add_teacher"); Route::post('add_teacher', "Administrator@post_add_teacher"); Route::get('view_teacher', "Administrator@get_view_teacher"); Route::get('delete_teacher={id}', "Administrator@delete_teacher"); Route::get('edit_teacher={id}', "Administrator@get_update_teacher"); Route::post('edit_teacher={id}', "Administrator@post_update_teacher"); ///////////////////////////////////////////////// //Professor Route::get('add_prof', "Administrator@get_add_professor");
Route::get('/profile/details', array('as' => 'user-profile-details', 'uses' => 'User\\UserAccountController@getProfileDetails')); /** * Get User Details (post) */ Route::Post('/get/details', array('as' => 'user-get-details', 'uses' => 'User\\UserAccountController@postGetDetails')); /** * Update User Details (post) */ Route::Post('/update/details', array('as' => 'user-update-details', 'uses' => 'User\\UserAccountController@postUpdateDetails')); /** * Update User Email (post) */ Route::Post('/update/email', array('as' => 'user-update-email', 'uses' => 'User\\UserAccountController@postChangeEmailAddress')); /** * Update User Password (post) */ Route::Post('/update/password', array('as' => 'user-update-password', 'uses' => 'User\\UserAccountController@postChangePassword')); /********************************** User Profile ****************************************/ /** * Get User Profile (get) */ Route::get('/profile', array('as' => 'user-profile', 'uses' => 'User\\UserAccountController@getProfile')); /** * Update User Profile pic (post) */ Route::Post('/update/profile/pic', array('as' => 'user-update-profile-pic', 'uses' => 'User\\UserAccountController@postUpdateProfilePic')); /** * Update User Cover pic (post) */ Route::Post('/update/cover/pic', array('as' => 'user-update-cover-pic', 'uses' => 'User\\UserAccountController@postUpdateCoverPic')); });
<?php /****************************************************************************************************************************** * * AUTHOR : Jan Klemmensen * CREATED : 1/8/2014 * * PURPOSE : This is where you define your routes - At the moment GET and POST can be used * Adding wildcards : Route::Get( '/users/:id', 'IndexController', 'getIndex' ); * Getting wildcards : echo Route::Request('id'); ****************************************************************************************************************************** */ # Index page Route::Get('/', 'IndexController', 'getIndex'); Route::Post('/', 'IndexController', 'postIndex');
Route::post('/inventory/addInventory', 'InventoryController@create'); Route::post('/inventory/getEidtInventoryDetails', 'InventoryController@getEditInventoryDetails'); Route::post('/inventory/editInventory', 'InventoryController@editInventoryDetail'); Route::post('/inventory/deleteInventoryItem', 'InventoryController@deleteInventoryDetail'); Route::post('/inventory/allowInvEditDelete', 'InventoryController@allowInvEditDelete'); Route::post('/inventory/allowInvAdd', 'InventoryController@allowInvAdd'); //Product Details Route::get('/product/product_List', 'ProductController@productList'); Route::post('/product/addProduct', 'ProductController@saveNewProduct'); Route::post('/product/showProduct', 'ProductController@getEditProductDetails'); Route::post('/product/editProduct', 'ProductController@editProductDetail'); Route::post('/product/deleteProduct', 'ProductController@deleteProductDetail'); Route::post('/product/allowProductAdd', 'ProductController@allowProductAdd'); Route::post('/product/allowProductEditDelete', 'ProductController@allowProductEditDelete'); //Order Details Route::Post('/order/getWarehouse', 'OrderController@getChannelWarehouseDetails'); Route::get('/order/orderList', 'OrderController@orderList'); Route::get('/order/newOrderList', 'OrderController@newOrderList'); Route::get('/order/inprogressOrderList', 'OrderController@inprogressOrderList'); Route::get('/order/closedOrderList', 'OrderController@closedOrderList'); Route::post('/order/addOrder', 'OrderController@storeOrder'); Route::post('/order/editOrder', 'OrderController@edit'); Route::get('/order/get_channel', 'OrderController@getChannel'); Route::post('/order/get_product', 'OrderController@getChannelProductDetails'); Route::post('/order/orderDelete', 'OrderController@deleteOrderDetails'); Route::post('/order/edit_order', 'OrderController@editOrderDetails'); Route::post('/order/getEditOrderDetails', 'OrderController@getEditOrderDetails'); Route::post('/order/getEditPackingDetails', 'OrderController@getPackingDetails'); Route::post('/order/getEditShipmentDetails', 'OrderController@getShipementDetails'); Route::get('/order/getCarrierDetail', 'OrderController@getCarrierDetails'); Route::get('/order/getCarrierServiceDetail', 'OrderController@getCarrierServiceDetails');
Route::post('bestellen/checkout', ['as' => 'checkout', 'uses' => 'CheckoutController@checkout']); Route::get('bestellen/voltooid', ['as' => 'checkout_final', 'uses' => 'CheckoutController@succeed']); Route::post('login', 'LoginController@login'); Route::get('logout', 'LoginController@logout'); Route::controllers(['auth' => 'Auth\\AuthController', 'password' => 'Auth\\PasswordController']); /* * Public */ Route::get('informatie', 'AboutController@index'); /* Frontend products */ Route::get('producten', 'ProductController@index'); Route::get('producten/{category}', 'ProductController@index'); Route::get('product/{id}-{name}', array('as' => 'show_product_frontend', 'uses' => 'ProductController@show')); Route::get('/search/{keyword}', ['as' => 'search', 'uses' => 'SearchController@getSearch']); Route::get('/search', ['as' => 'suggestions', 'uses' => 'SearchController@getSuggestions']); Route::Post('/search', ['as' => 'suggestions', 'uses' => 'SearchController@getSuggestions']); /* Frontend cart */ Route::get('cart', array('as' => 'cart', 'uses' => 'CartController@index')); Route::post('cart/add', array('as' => 'cart_add', 'uses' => 'CartController@addToCart')); Route::get('cart/remove/{identifier}', array('as' => 'cart_remove', 'uses' => 'CartController@removeFromCart')); Route::group(['middleware' => 'auth'], function () { /* Store routes here when logged in! */ /* Backend */ Route::get('backend', 'Backend\\BackendController@index'); // Index /* Backend categories */ Route::get('backend/categories', array('as' => 'categories', 'uses' => 'Backend\\BackendCategoryController@index')); // Index Route::get('backend/categories/add', array('as' => 'add_category', 'uses' => 'Backend\\BackendCategoryController@add')); // Edit Route::get('backend/categories/show/{id}', array('as' => 'show_category', 'uses' => 'Backend\\BackendCategoryController@show'));
Route::get('grade_field_for_each_student={course_id}', 'professor@grade_field_for_each_student'); Route::post('grade_field_for_each_student={course_id}', 'professor@post_grade_field_for_each_student'); Route::get('view_prof_assignment={course_id}', 'professor@get_view_prof_assignment'); Route::post('delete_assignment={course_id}={ass_id}', 'professor@post_delete_prof_assignment'); Route::get('view_uploaded_assignment={course_id}', 'professor@view_uploaded_assignment'); Route::get('dawn_load_assignment={ass_id}', 'professor@get_download_assignment'); Route::get('upload_dawnload_assignment={ass_id}', 'professor@get_upload_download_assignment'); Route::post('set_grade', 'professor@set_assignment_grade'); ////////////////////////////////////////////////////////////////////////////////////////////////////////// Route::get('register_course', 'student@get_register_course'); Route::post('register_course', 'student@post_register_course'); Route::get('teacher_select', 'student@get_select_teacher'); Route::post('teacher_select', 'student@post_select_teacher'); Route::get('view_registers', 'student@get_view_register'); Route::post('update_course_registered', 'student@get_register_course'); Route::Post('register_course', 'student@post_register_course'); Route::get('view_student_assignment={course_id}', 'student@get_view_student_assignment'); Route::post('view_student_assignment={course_id}', 'student@upload_solution'); Route::get('download_assignment={id}', 'student@download_assignment'); Route::get('View_grade', 'student@View_grade'); Route::get('deadline', 'Administrator@deadline'); Route::post('post_deadline', 'Administrator@post_deadline'); Route::get('view_deadline', 'Administrator@view_deadline'); Route::get('update_deadline={id}', 'Administrator@get_update_deadline'); Route::post('update_deadline_course={id}', 'Administrator@post_update_deadline'); /////////////////////////////////////////////////////////////////////////////////////////////////////// Route::get('profile=Student', 'student@get_profile'); Route::post('profile=Student', 'student@post_profile'); Route::get('profile=Administrator', 'Administrator@get_profile'); Route::post('profile=Administrator', 'Administrator@post_profile'); Route::get('profile=Professor', 'professor@get_profile');
Route::get('/user/inbox', array('as' => 'user-inbox', 'uses' => 'UserClassController@getInbox')); /* * User Inbox */ Route::get('/user/inbox', array('as' => 'user-inbox', 'uses' => 'UserClassController@getInbox')); /* * User Assignments */ Route::get('/user/assignments', array('as' => 'user-assignments', 'uses' => 'UserClassController@getAssignments')); /* * School Events */ Route::get('/user/events', array('as' => 'user-events', 'uses' => 'UserClassController@getEvents')); /** * Ajax Api's */ /** * APi for Attendance */ Route::Post('/user/attendance/new/application/leave', array('as' => 'user-attendance-new-attendance-leave', 'uses' => 'UserClassController@postNewLeaveApplication')); /* * Api to get All the Classes to a Stream (post) */ Route::Post('/user/classes/from/stream/id', array('as' => 'user-get-classes-from-stream-id', 'uses' => 'UserClassController@postGetClassesFromStreamId')); /* * Api to get section by Class (post) */ Route::Post('user/get/sections/from/class/id', array('as' => 'user-get-sections-from-class-id', 'uses' => 'UserClassController@postGetSections')); Route::Post('/user/statusfeed', array('as' => 'user-statusfeed', 'uses' => 'UserClassController@postStatusFeed')); Route::get('/user/status', array('as' => 'user-status', 'uses' => 'UserStatusController@getStatus')); });
// Route::get('/', function () { // return view('welcome'); // }); Route::get('/', 'ArticlesController@index'); Route::get('contact', 'PagesController@contact'); Route::get('about', 'PagesController@about'); // Route::get('articles', ['as' => 'articles.index', 'uses' => 'ArticlesController@index']); // Route::get('articles/create', ['as' => 'articles.create', 'uses' => 'ArticlesController@create']); // Route::get('articles/{id}', ['as' => 'articles.show', 'uses' => 'ArticlesController@show']); // Route::post('articles', ['as' => 'articles.store', 'uses' => 'ArticlesController@store']); // Route::get('articles/{id}/edit', ['as' => 'articles.edit', 'uses' => 'ArticlesController@edit']); // Route::patch('articles/{id}', ['as' => 'articles.update', 'uses' => 'ArticlesController@update']); // Route::delete('articles/{id}', ['as' => 'articles.destroy', 'uses' => 'ArticlesController@destroy']); Route::resource('articles', 'ArticlesController'); // Authentication routes... Route::get('auth/login', 'Auth\\AuthController@getLogin'); Route::post('auth/login', 'Auth\\AuthController@postLogin'); Route::get('auth/logout', 'Auth\\AuthController@getLogout'); // RegistrationRoutes... Route::get('auth/register', 'Auth\\AuthController@getRegister'); Route::post('auth/register', 'Auth\\AuthController@postRegister'); // 5つの代わりに暗黙コントローラ使うこともできる // Route::controller('auth', 'Auth\AuthController'); // Password reset link request routes... Route::get('password/email', 'Auth\\PasswordController@getEmail'); Route::Post('password/email', 'Auth\\PasswordController@postEmail'); // Password reset routes... Route::get('password/reset/{token}', 'Auth\\PasswordController@getReset'); Route::post('password/reset', 'Auth\\PasswordController@postReset'); // 暗黙コントローラでもよい // Route::controller('password', 'Auth\PasswordController');
Route::group(['prefix' => 'teacher'], function () { /* * Teacher Forgot password (get) */ Route::get('/first/page/{teacherId}', array('as' => 'teacher-first-page', 'uses' => 'LoginAndRegisterController@goToAfterSignIn')); /* * Teacher Forgot password (get) */ Route::get('/home', array('as' => 'teacher-home', 'uses' => 'Teacher\\TeacherAccountController@getHome')); /* * Teacher Log Out (get) */ Route::get('/account/logout', array('as' => 'teacher-logout', 'uses' => 'LoginAndRegisterController@getLogout')); /* * Teacher Welcome Settings (get) */ Route::get('/welcome/settings', array('as' => 'teacher-welcome-settings', 'uses' => 'Teacher\\TeacherAccountController@getWelcomeSettings')); /* * Validate Admin By school code and teacher code */ Route::Post('/school/validation', array('as' => 'mobile-teacher-school-validation-post', 'uses' => 'SchoolController@postValidateSchool')); /* * Class set Intial Settings (Post) */ Route::Post('/class/set/intial/post', array('as' => 'teacher-class-set-initial-post', 'uses' => 'Teacher\\TeacherAccountController@postSetInitial')); /* * Class set Intial Settings (get) */ Route::get('/class/set/intial', array('as' => 'teacher-class-set-initial', 'uses' => 'Teacher\\TeacherAccountController@getSetInitial')); });
* School Sign-in (post) */ Route::Post('/register/post', array('as' => 'school-register-post', 'uses' => 'SchoolController@postCreate')); /* * School Activate Account (get) */ Route::get('/activate/school/{code}', array('as' => 'school-account-activate', 'uses' => 'SchoolController@getActivateSchool')); /** * Ajax Api */ /* * Get Current School Session */ Route::Post('/school/current/session', array('as' => 'school-current-session', 'uses' => 'SchoolController@postGetSchoolCurrentSession')); /* * Validate User By school code and student code */ Route::Post('/school/student/validation', array('as' => 'student-validation-post', 'uses' => 'SchoolController@postValidateSchoolForStudents')); /* * Validate Admin By school code and admin code */ Route::Post('/school/admin/validation', array('as' => 'admin-validation-post', 'uses' => 'SchoolController@postValidateSchoolForAdmin')); /* * Validate Admin By school code and teacher code */ Route::Post('/school/validation', array('as' => 'school-validation-post', 'uses' => 'SchoolController@postValidateSchool')); /* * Briefly Update the details of the user */ Route::Post('/school/brief/update', array('as' => 'school-brief-update-post', 'uses' => 'SchoolController@postBriefRegistration')); });
|-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond to | and give it the controller to call when that URI is requested. | */ Route::get('/', 'HomeController@index'); Route::get('/delete_seek/{id}', 'DeleteController@delete_seek'); Route::get('/delete/{id}', 'DeleteController@delete_announcement'); Route::get('/search/trainings', 'SearchController@keyword_search_trainings'); Route::get('/search/seek', 'SearchController@keyword_search_seek'); Route::get('/seek/announcements', 'SearchController@render_seek_form_data'); Route::Post('/seek/announcements', 'SearchController@get_seek_announcements'); Route::get('/announcements', 'SearchController@render_form_data'); Route::Post('/announcements', 'SearchController@get_announcements'); Route::get('/announcement/edit/{id}', 'EditController@edit_announcement'); Route::post('/announcement/edit/', 'EditController@save_announcement'); Route::get('/seek_announcement/edit/{id}', 'EditController@edit_seek_announcement'); Route::post('/seek_announcement/edit', 'EditController@save_seek_announcement'); Route::get('/download/{file_name}', 'SearchController@download'); Route::get('/login', 'UserController@login'); Route::post('/user/auth', 'UserController@auth'); Route::get('/admin', 'UserController@admin'); Route::post('/reset_password', 'UserController@reset_password'); Route::post('/add_field', 'AddController@store_field'); Route::get('/add_field', 'AddController@add_field'); Route::get('/drop_field/{id}', 'AddController@drop_field'); Route::get('/remove_field', 'AddController@remove_field'); Route::post('/add_term', 'AddController@store_term'); Route::get('/add_term', 'AddController@add_term');
<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond to | and give it the controller to call when that URI is requested. | */ Route::get('/', function () { return view('welcome'); }); Route::Post('gamehandler', 'GameHandler@index'); Route::Post('ping', 'GameHandler@ping');
Route::get('/login', array('as' => 'login', 'uses' => 'Auth\\AuthController@getLogin')); Route::post('/login', array('as' => 'login', 'uses' => 'Auth\\AuthController@postLogin')); Route::get('/logout', array('as' => 'logout', 'uses' => 'Auth\\AuthController@getLogoutWrapper')); Route::get('/password/email', array('as' => 'password_email_req', 'uses' => 'Auth\\PasswordController@getEmail')); Route::post('/password/email', array('as' => 'password_email_req', 'uses' => 'Auth\\PasswordController@postEmail')); Route::get('/password/reset/{token}', array('uses' => 'Auth\\PasswordController@getReset')); Route::post('/password/reset', array('uses' => 'Auth\\PasswordController@postReset')); Route::get('/user/confirm/{code}', 'UserController@confirm'); // profile completion routes Route::group(['middleware' => 'auth'], function () { Route::get('/profile-complete/picture', 'ProfileController@getPicture'); Route::Post('/profile-complete/picture', 'ProfileController@postPicture'); Route::get('/profile-complete/about', 'ProfileController@getAbout'); Route::Post('/profile-complete/about', 'ProfileController@postAbout'); Route::get('/profile-complete/contact', 'ProfileController@getContact'); Route::Post('/profile-complete/contact', 'ProfileController@postContact'); Route::get('/profile-complete/preview', 'ProfileController@getPreview'); }); // public routes Route::get('/buyers', array('as' => 'buyers', 'uses' => 'BuyerController@getIndex')); Route::get('/products', array('as' => 'products', 'uses' => 'IndustryController@showProductIndex')); Route::get('/indsutries', array('as' => 'industries', 'uses' => 'IndustryController@showIndex')); // items related routes Route::get('/product/new', 'IndustryController@getNewProduct'); Route::post('/product/new', 'IndustryController@postNewProduct'); Route::get('/buy-lead/new', 'BuyerController@getNew'); Route::post('/buy-lead/new', 'BuyerController@postNew'); // admin routes Route::group(['prefix' => 'admin'], function () { Route::get('/login', array('as' => 'login', 'uses' => 'Admin\\Auth\\AuthController@getLoginWrapper')); Route::post('/login', array('as' => 'login', 'uses' => 'Admin\\Auth\\AuthController@postLoginWrapper'));
Route::Post('/delete/event/types', array('as' => 'admin-delete-event-types', 'uses' => 'AdminEventsController@postDeleteEventTypes')); // ------------------------------------------School Periods ------------------------------------------------------------- /** * Get School Periods */ Route::get('/school/periods', array('as' => 'admin-school-periods', 'uses' => 'SchoolSettingsController@getSchoolPeriods')); /** * Api for Setting School Periods */ Route::Post('/set/school/periods', array('as' => 'admin-set-school-periods', 'uses' => 'SchoolSettingsController@postSetSchoolPeriods')); /** * Api for Deleting School Periods */ Route::Post('/delete/school/periods', array('as' => 'admin-delete-school-periods', 'uses' => 'SchoolSettingsController@postDeleteSchoolPeriods')); /** * Api for Creating School Periods Profile */ Route::Post('/set/school/periods/profile', array('as' => 'admin-set-school-periods-profile', 'uses' => 'SchoolSettingsController@postSetSchoolPeriodsProfile')); /** * Api for Creating School Periods Table by Period Profile Id */ Route::Post('/get/school/periods/by/id', array('as' => 'admin-get-school-periods-profile-by-id', 'uses' => 'SchoolSettingsController@postGetSchoolPeriodsProfileById')); /** * Api for making period profile current */ Route::Post('/make/current/period/profile', array('as' => 'admin-make-current-period-profile', 'uses' => 'SchoolSettingsController@postMakeCurrentPeriodProfile')); /** * Api for getting current profile periods */ Route::Post('/get/current/period/profile/periods', array('as' => 'admin-get-current-period-profile-profiles', 'uses' => 'SchoolSettingsController@postGetCurrentPeriodProfilePeriods')); });
<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond to | and give it the controller to call when that URI is requested. | */ Route::get('/', 'indexController@index'); Route::get('registrar', 'indexController@categoriaBox'); Route::get('/productocategoria/{id}', 'indexController@categoriaProducto'); Route::Post('/guardar', 'indexController@registraProducto'); Route::Post('/guardar/{id}', 'indexController@actualiza'); //Route::Post('/guardar/{id}','indexController@reporteSalida'); Route::get('/generapdf/{id}', 'indexController@generaPdf'); Route::get('/salida', function () { return view('salida'); });