function routes($config) { // only mess with the cms Route::group(['prefix' => $config['cms_path'], 'middleware' => ['cms.language', 'cms.view']], function () use($config) { Route::group(['namespace' => '\\Thorazine\\Cms\\Http\\Controllers'], function () use($config) { // pickup on first contact Route::get('/', ['as' => 'cms.auth.first', 'uses' => 'AuthController@first']); Route::post('/', ['as' => 'cms.auth.first.create', 'uses' => 'AuthController@create']); // auth Route::post('/login/submit', ['as' => 'cms.auth.check', 'before' => 'csrf', 'uses' => 'AuthController@check']); Route::get('/login', ['as' => 'cms.auth.login', 'uses' => 'AuthController@index']); // All routes that do require auth Route::group(['middleware' => ['cms.auth']], function () use($config) { // logout Route::get('/logout', ['as' => 'cms.auth.logout', 'uses' => 'AuthController@destroy']); // cms home Route::get('/base', ['as' => 'cms.base', 'uses' => 'CmsController@index']); // flexible auth routes Route::group(['middleware' => ['cms.model']], function () use($config) { // flexible restfull routes Route::get('/{module}/{model}/index', ['as' => 'module.model.index', 'uses' => 'PreController@index']); Route::get('/{module}/{model}/create', ['as' => 'module.model.create', 'uses' => 'PreController@create']); Route::post('/{module}/{model}/store', ['as' => 'module.model.store', 'uses' => 'PreController@store']); Route::get('/{module}/{model}/show/{id}', ['as' => 'module.model.show', 'uses' => 'PreController@show']); Route::get('/{module}/{model}/edit/{id}', ['as' => 'module.model.edit', 'uses' => 'PreController@edit']); Route::put('/{module}/{model}/update/{id}', ['as' => 'module.model.update', 'uses' => 'PreController@update']); Route::delete('/{module}/{model}/destroy/{id}', ['as' => 'module.model.destroy', 'uses' => 'PreController@destroy']); Route::post('/{module}/{model}/order', ['as' => 'module.model.order', 'uses' => 'PreController@order']); Route::get('/{module}/{model}/{action}', ['as' => 'module.model.action', 'uses' => 'PreController@custom']); }); }); }); }); }
/** * * @param type $resource * @param type $controller */ function add_routes_resources($resource, $controller) { Route::get(root_uri() . '/' . $resource, array('as' => 'admin.' . $resource . '.index', 'uses' => $controller . "@index")); Route::get(root_uri() . '/' . $resource . '/create', array('as' => 'admin.' . $resource . '.create', 'uses' => $controller . "@create")); Route::post(root_uri() . '/' . $resource . '/store', array('as' => 'admin.' . $resource . '.store', 'uses' => $controller . "@store")); Route::get(root_uri() . '/' . $resource . '/{id}/' . 'edit', array('as' => 'admin.' . $resource . '.edit', 'uses' => $controller . "@edit")); Route::put(root_uri() . '/' . $resource . '/{id}/' . 'update', array('as' => 'admin.' . $resource . '.update', 'uses' => $controller . "@update")); Route::put(root_uri() . '/' . $resource . '/{id}/' . 'destroy', array('as' => 'admin.' . $resource . '.destroy', 'uses' => $controller . "@destroy")); }
public function setUp() { parent::setUp(); \Route::resource('/test', 'AngieTestController'); \Route::resource('/test2', 'AngieTest2Controller', array('only' => array('index', 'show', 'post'))); \Route::get('/test3', 'AngieTestController3@someGetMethod'); \Route::get('/test/test3', 'AngieTestController3@someShowMethod'); \Route::put('/test3/{id}/edit', 'AngieTestController3@somePutMethod'); \Route::get('/test4/{id}/edit', array('prefix' => 'testprefix', 'uses' => 'AngieTestController4@someGetMethod')); }
/** * Install route patterns. * * @param null $baseUri */ public static function install($baseUri = null) { $baseUri = $baseUri ? "{$baseUri}/" : ""; \Route::post($baseUri . "resources/bulk/{resource}", "Foothing\\RepositoryController\\Controllers\\ResourceController@postBulk"); \Route::put($baseUri . "resources/bulk/{resource}", "Foothing\\RepositoryController\\Controllers\\ResourceController@putBulk"); \Route::put($baseUri . "resources/{resource}/{id}/link/{relation}/{related}/{relatedId}", "Foothing\\RepositoryController\\Controllers\\ResourceController@putLink"); \Route::delete($baseUri . "resources/{resource}/{id}/link/{relation}/{related}/{relatedId}", "Foothing\\RepositoryController\\Controllers\\ResourceController@deleteLink"); \Route::get($baseUri . "resources/{resource}/{id?}/{args?}", "Foothing\\RepositoryController\\Controllers\\ResourceController@getIndex")->where('args', '[a-zA-Z0-9/_]*'); \Route::put($baseUri . "resources/{resource}/{id}", "Foothing\\RepositoryController\\Controllers\\ResourceController@putIndex"); \Route::delete($baseUri . "resources/{resource}/{id}", "Foothing\\RepositoryController\\Controllers\\ResourceController@deleteIndex"); \Route::post($baseUri . "resources/{resource}", "Foothing\\RepositoryController\\Controllers\\ResourceController@postIndex"); }
public function setUp() { parent::setUp(); $AngieServiceProvider = new AngieServiceProvider($this->app); $AngieServiceProvider->boot(); \Route::resource('/test', 'AngieTestController1'); \Route::resource('/test2', 'AngieTest2Controller', array('only' => array('index', 'show', 'store'))); \Route::get('/test3', 'AngieTestController3@someGetMethod'); \Route::get('/test/test3', 'AngieTestController3@someShowMethod'); \Route::put('/test3/{id}/edit', 'AngieTestController3@somePutMethod'); \Route::get('/test4/{id}/edit', 'Test\\Angie\\TestController4@somePutMethod'); \Route::resource('/test5', 'Test\\Angie\\TestController5'); }
public function routes() { $prefix = Config::get('acl.route_prefix', ''); \Route::group(['middleware' => ['acl'], 'prefix' => $prefix], function () { $permissions = Config::get('acl.routes.permissions', 'acl/permissions'); $sections = Config::get('acl.routes.sections', 'acl/sections'); $roles = Config::get('acl.routes.roles', 'acl/roles'); $users = Config::get('acl.routes.users', 'acl/users'); $acl = Config::get('acl.routes.index', 'acl'); \Route::put($roles . '/permission', '\\AldoZumaran\\Acl\\Http\\Controllers\\AclRolesController@permission')->name(\Acl::route('roles', 'read_update', [], false)); \Route::put($users . '/permission', '\\AldoZumaran\\Acl\\Http\\Controllers\\AclUsersController@permission')->name(\Acl::route('users', 'read_update', [], false)); \Route::resource($permissions, '\\AldoZumaran\\Acl\\Http\\Controllers\\AclPermissionsController'); \Route::resource($sections, '\\AldoZumaran\\Acl\\Http\\Controllers\\AclSectionsController'); \Route::resource($roles, '\\AldoZumaran\\Acl\\Http\\Controllers\\AclRolesController'); \Route::resource($users, '\\AldoZumaran\\Acl\\Http\\Controllers\\AclUsersController'); \Route::resource($acl, '\\AldoZumaran\\Acl\\Http\\Controllers\\AclController'); }); }
public static function returnRoutes($prefix = null) { $class = __CLASS__; $entity = self::$entity; Route::any('/ajax/check-dicval-slug-unique', array('as' => 'dicval.check-dicval-slug-unique', 'uses' => $class . "@postAjaxCheckDicvalSlugUnique")); Route::group(array('before' => 'auth', 'prefix' => $prefix . "/" . $class::$group), function () use($class, $entity) { Route::post($entity . '/ajax-order-save', array('as' => 'dicval.order', 'uses' => $class . "@postAjaxOrderSave")); Route::post($entity . '/ajax-nested-set-model', array('as' => 'dicval.nestedsetmodel', 'uses' => $class . "@postAjaxNestedSetModel")); Route::get($entity . '/{dic_slug}/{entity_id}/restore', array('as' => 'dicval.restore', 'uses' => $class . '@restore')); Route::resource('dic.val', $class, array('except' => array('show'), 'names' => array('index' => 'dicval.index', 'create' => 'dicval.create', 'store' => 'dicval.store', 'edit' => 'dicval.edit', 'update' => 'dicval.update', 'destroy' => 'dicval.destroy'))); }); Route::group(array('before' => 'auth', 'prefix' => $prefix), function () use($class, $entity) { Route::resource('/entity/{dic_slug}/', $class, array('except' => array('show', 'edit', 'update', 'destroy'), 'names' => array('index' => 'entity.index', 'create' => 'entity.create', 'store' => 'entity.store'))); Route::get('/entity/{dic_slug}/{entity_id}/edit', array('as' => 'entity.edit', 'uses' => $class . '@edit')); Route::put('/entity/{dic_slug}/{entity_id}/update', array('as' => 'entity.update', 'uses' => $class . '@update')); Route::delete('/entity/{dic_slug}/{entity_id}', array('as' => 'entity.destroy', 'uses' => $class . '@destroy')); Route::get('/entity/{dic_slug}/{entity_id}/restore', array('as' => 'entity.restore', 'uses' => $class . '@restore')); }); }
<?php Route::get('admin/experiences', ['uses' => 'AdminExperiencesController@index', 'as' => 'AdminExperiences', 'middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::get('admin/review', ['uses' => 'AdminExperienceLocationsController@review', 'as' => 'AdminReview', 'middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::get('admin/expreviewadd', ['uses' => 'AdminExperienceLocationsController@expReviewAdd', 'as' => 'reviewexpAdd', 'middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::post('admin/experienceReviewAdd', ['uses' => 'AdminExperienceLocationsController@experienceReviewAdd', 'as' => 'experienceReviewAdd', 'middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::get('admin/alacreviewadd', ['uses' => 'AdminExperienceLocationsController@alaReviewAdd', 'as' => 'alaReviewAdd', 'middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::post('admin/alacarteReviewAdd', ['uses' => 'AdminExperienceLocationsController@alacarteReviewAdd', 'as' => 'alacarteReviewAdd', 'middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::get('expreview/edit/{id}', ['uses' => 'AdminExperienceLocationsController@expReviewUpdate', 'as' => 'reviewUpdate', 'middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::post('admin/expreview/updatesave', ['uses' => 'AdminExperienceLocationsController@expReviewUpdateSave', 'as' => 'expReviewUpdateSave', 'middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::post('admin/alacarte/updatesave', ['uses' => 'AdminExperienceLocationsController@alaReviewUpdateSave', 'as' => 'alaReviewUpdateSave', 'middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::get('alacartereview/edit/{id}', ['uses' => 'AdminExperienceLocationsController@alacarteReviewUpdate', 'as' => 'alacarteReviewUpdate', 'middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::post('/admin/show_exp_review_update', ['uses' => 'AdminExperienceLocationsController@showExperienceReview', 'as' => 'showExperienceReview', 'middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::post('/admin/show_alacart_review_update', ['uses' => 'AdminExperienceLocationsController@showAlacarteReview', 'as' => 'showAlacarteReview', 'middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::get('admin/reviewalacarte', ['uses' => 'AdminExperienceLocationsController@reviewAlacarte', 'as' => 'reviewAlacarte', 'middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::get('admin/experiences/create', ['uses' => 'AdminExperiencesController@create', 'as' => 'AdminExperienceCreate', 'middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::post('admin/experiences/', ['uses' => 'AdminExperiencesController@store', 'as' => 'AdminExperienceStore', 'middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::get('admin/experiences/{id}', ['uses' => 'AdminExperiencesController@show', 'as' => 'AdminExperienceShow', 'middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::get('admin/experiences/{id}/edit', ['uses' => 'AdminExperiencesController@edit', 'as' => 'AdminExperienceEdit', 'middleware' => [], 'where' => ['id' => '\\d+'], 'domain' => env('WEBSITE_URL')]); Route::get('admin/experiences/locations/{id}/edit', ['uses' => 'AdminExperienceLocationsController@edit', 'as' => 'AdminExperienceLocationsEdit', 'middleware' => [], 'where' => ['id' => '\\d+'], 'domain' => env('WEBSITE_URL')]); Route::put('admin/experiences/{id}', ['uses' => 'AdminExperiencesController@update', 'as' => 'AdminExperienceUpdate', 'middleware' => [], 'where' => ['id' => '\\d+'], 'domain' => env('WEBSITE_URL')]); Route::put('admin/experiences/locations/{id}', ['uses' => 'AdminExperienceLocationsController@update', 'as' => 'AdminExperienceLocationsUpdate', 'middleware' => [], 'where' => ['id' => '\\d+'], 'domain' => env('WEBSITE_URL')]); Route::delete('admin/experiences/{id}', ['uses' => 'AdminExperiencesController@destroy', 'as' => 'AdminExperienceDelete', 'middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::resource('admin/experience/variants', 'AdminExperienceVariantsController', ['middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::resource('admin/experience/complex', 'AdminComplexExperiencesController', ['middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::resource('admin/experience/locations', 'AdminExperienceLocationsController', ['middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::post('admin/experience/locations/getVendorLocationsDetails', ['uses' => 'AdminExperienceLocationsController@getVendorLocationsDetails', 'middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::post('/admin/experience/location/ajax_sort', ['uses' => 'AdminExperienceLocationsController@experienceSortOrder', 'middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::get('/admin/experiences/location/{cityval}', ['uses' => 'AdminExperienceLocationsController@getExperienceScheduleCity', 'middleware' => [], 'where' => [], 'domain' => env('WEBSITE_URL')]); Route::match(['get', 'post'], 'admin/experiences/deactive_Addon/{id}', ['uses' => 'AdminExperiencesController@deactive_Addon', 'middleware' => [], 'domain' => env('WEBSITE_URL')]);
<?php Route::group(['middleware' => 'can:ACCESS_DOCUMENTS'], function () { Route::resource('documents', 'DocumentsController', ['except' => ['show', 'create'], 'names' => ['index' => 'reactor.documents.index', 'store' => 'reactor.documents.store', 'edit' => 'reactor.documents.edit', 'update' => 'reactor.documents.update', 'destroy' => 'reactor.documents.destroy']]); Route::get('documents/upload', ['uses' => 'DocumentsController@upload', 'as' => 'reactor.documents.upload']); Route::get('documents/embed', ['uses' => 'DocumentsController@embed', 'as' => 'reactor.documents.embed']); Route::post('documents/embed', ['uses' => 'DocumentsController@storeEmbedded', 'as' => 'reactor.documents.embed.store']); Route::get('documents/image/{id}', ['uses' => 'DocumentsController@image', 'as' => 'reactor.documents.image.edit']); Route::put('documents/image/{id}', ['uses' => 'DocumentsController@imageUpdate', 'as' => 'reactor.documents.image.update']); Route::get('documents/download/{id}', ['uses' => 'DocumentsController@download', 'as' => 'reactor.documents.download']); Route::get('documents/search', ['uses' => 'DocumentsController@search', 'as' => 'reactor.documents.search']); Route::post('documents/search', ['uses' => 'DocumentsController@searchJson', 'as' => 'reactor.documents.search.json']); Route::delete('documents/destroy/bulk', ['uses' => 'DocumentsController@bulkDestroy', 'as' => 'reactor.documents.destroy.bulk']); Route::get('documents/load', ['uses' => 'DocumentsController@load', 'as' => 'reactor.documents.load']); Route::get('documents/retrieve', ['uses' => 'DocumentsController@retrieve', 'as' => 'reactor.documents.retrieve']); Route::post('documents/update', ['uses' => 'DocumentsController@updateJson', 'as' => 'reactor.documents.update.json']); });
<?php Route::get('/api/centrales/{conductor_id}/pasajeros', 'Central\\PasajeroController@index'); Route::post('/api/centrales/{conductor_id}/pasajeros', 'Central\\PasajeroController@store'); Route::get('/api/pasajeros/{pasajero_id}', 'Central\\PasajeroController@show'); Route::put('/api/pasajeros/{pasajero_id}', 'Central\\PasajeroController@update'); Route::delete('/api/pasajeros/{pasajero_id}', 'Central\\PasajeroController@destroy');
Route::get('admin/login', 'AuthController@getAdminLogin'); Route::post('admin/login', 'AuthController@postAdminLogin'); Route::any('admin/logout', 'AuthController@AdminLogout'); Route::get('api/articles', function () { $articles = Article::orderBy('created_at', 'DESC')->get(); return $articles; }); Route::get('api/categories', function () { $categories = Category::all(); return $categories; }); Route::get('/article/{slug}', array('uses' => 'ArticlesController@show', 'as' => 'article.show')); Route::group(['prefix' => '/dashboard', 'before' => 'auth.admin'], function () { Route::post('/category/add', array('uses' => 'AdminsController@AddCategory', 'as' => 'add.category')); //Article Routes Route::get('/article/all', array('uses' => 'ArticlesController@index', 'as' => 'article.index')); Route::get('/article/create', array('uses' => 'ArticlesController@create', 'as' => 'article.create')); Route::post('/article', array('uses' => 'ArticlesController@store', 'as' => 'article.store')); Route::get('/article/{slug}/edit', array('uses' => 'ArticlesController@edit', 'as' => 'article.edit')); Route::put('/article/{slug}', array('uses' => 'ArticlesController@update', 'as' => 'article.update')); Route::get('/article/new', array('uses' => 'ArticlesController@create', 'as' => 'article.new')); Route::post('/article/{id}/delete', array('uses' => 'ArticlesController@removeArticle', 'as' => 'remove.article')); Route::post('/uploadimg', 'ArticlesController@uploadsource'); //Auth routes Route::get('/', array('uses' => 'AuthController@index', 'as' => 'admin.home')); Route::any('/logout', array('uses' => 'AuthController@AdminLogout', 'as' => 'admin.logout')); Route::post('/uploadthumb', 'ArticlesController@uploadthumb'); }); Route::get('/hello', function () { return View::make('hello'); });
Route::post('tasks/bulk', 'TaskController@bulk'); Route::get('api/recurring_invoices/{client_id?}', array('as' => 'api.recurring_invoices', 'uses' => 'InvoiceController@getRecurringDatatable')); Route::get('invoices/invoice_history/{invoice_id}', 'InvoiceController@invoiceHistory'); Route::get('quotes/quote_history/{invoice_id}', 'InvoiceController@invoiceHistory'); Route::resource('invoices', 'InvoiceController'); Route::get('api/invoices/{client_id?}', array('as' => 'api.invoices', 'uses' => 'InvoiceController@getDatatable')); Route::get('invoices/create/{client_id?}', 'InvoiceController@create'); Route::get('recurring_invoices/create/{client_id?}', 'InvoiceController@createRecurring'); Route::get('recurring_invoices', 'RecurringInvoiceController@index'); Route::get('invoices/{public_id}/clone', 'InvoiceController@cloneInvoice'); Route::post('invoices/bulk', 'InvoiceController@bulk'); Route::post('recurring_invoices/bulk', 'InvoiceController@bulk'); Route::get('quotes/create/{client_id?}', 'QuoteController@create'); Route::get('quotes/{public_id}/clone', 'InvoiceController@cloneInvoice'); Route::get('quotes/{public_id}/edit', 'InvoiceController@edit'); Route::put('quotes/{public_id}', 'InvoiceController@update'); Route::get('quotes/{public_id}', 'InvoiceController@edit'); Route::post('quotes', 'InvoiceController@store'); Route::get('quotes', 'QuoteController@index'); Route::get('api/quotes/{client_id?}', array('as' => 'api.quotes', 'uses' => 'QuoteController@getDatatable')); Route::post('quotes/bulk', 'QuoteController@bulk'); Route::resource('payments', 'PaymentController'); Route::get('payments/create/{client_id?}/{invoice_id?}', 'PaymentController@create'); Route::get('api/payments/{client_id?}', array('as' => 'api.payments', 'uses' => 'PaymentController@getDatatable')); Route::post('payments/bulk', 'PaymentController@bulk'); Route::get('credits/{id}/edit', function () { return View::make('header'); }); Route::resource('credits', 'CreditController'); Route::get('credits/create/{client_id?}/{invoice_id?}', 'CreditController@create'); Route::get('api/credits/{client_id?}', array('as' => 'api.credits', 'uses' => 'CreditController@getDatatable'));
/* |-------------------------------------------------------------------------- | Routes that are only accessible by Event Planners | (Admin also can access by changing the user role) |-------------------------------------------------------------------------- */ Route::group(['middleware' => ['web', 'App\\Http\\Middleware\\EventPlannerMiddleware']], function () { }); /* |-------------------------------------------------------------------------- | Routes that are only accessible by Team Members | (Admin also can access by changing the user role) |-------------------------------------------------------------------------- */ Route::group(['middleware' => ['web', 'App\\Http\\Middleware\\TeamMemberMiddleware']], function () { Route::get('dashboard/events/progress', 'ProgressControllerU@Progress'); Route::post('dashboard/events/progress', 'ProgressControllerU@EditProgress'); Route::get('dashboard/events/myevents', 'ProgressControllerU@MyEvents'); }); /* |-------------------------------------------------------------------------- | Routes of Messaging System - To be deleted |-------------------------------------------------------------------------- */ Route::group(['prefix' => 'messages'], function () { Route::get('/', ['as' => 'messages', 'uses' => 'MessagesController@index']); Route::get('create', ['as' => 'messages.create', 'uses' => 'MessagesController@create']); Route::post('/', ['as' => 'messages.store', 'uses' => 'MessagesController@store']); Route::get('{id}', ['as' => 'messages.show', 'uses' => 'MessagesController@show']); Route::put('{id}', ['as' => 'messages.update', 'uses' => 'MessagesController@update']); });
| kernel and includes session state, CSRF protection, and more. | */ Route::group(['middleware' => 'web'], function () { Route::auth(); Route::get('/admin', 'AdminController@index'); /* * List the emails signed up for the website */ Route::get('/admin/inquiries', 'InquiryController@index'); /* * File Routes */ Route::get('/admin/files', 'FileController@index'); Route::delete('/admin/files', 'FileController@delete'); Route::put('/admin/files', 'FileController@add'); /* * Show the product list */ Route::get('/admin/products', 'ProductController@index'); Route::post('/admin/products', 'ProductController@edit'); Route::put('/admin/products', 'ProductController@add'); Route::delete('/admin/products', 'ProductController@delete'); /* * Show the content block list */ Route::get('/admin/content', 'ContentController@index'); Route::post('/admin/content', 'ContentController@edit'); Route::put('/admin/content', 'ContentController@add'); Route::delete('/admin/content', 'ContentController@delete'); });
<?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::get('client', 'ClientController@index'); Route::post('client', 'ClientController@store'); Route::get('client/{id}', 'ClientController@show'); Route::delete('client/{id}', 'ClientController@destroy'); Route::put('client/{id}', 'ClientController@update'); Route::get('project', 'ProjectController@index'); Route::post('project', 'ProjectController@store'); Route::get('project/{id}', 'ProjectController@show'); Route::delete('project/{id}', 'ProjectController@destroy'); Route::put('project/{id}', 'ProjectController@update');
<?php Route::get('backend/shop/orders', 'Creolab\\Shop\\Controllers\\Admin\\OrdersController@index'); // ! Cart items Route::get('cart/items', array('as' => 'cart.items.add', 'uses' => 'Creolab\\Shop\\Controllers\\Cart\\ItemController@store')); Route::post('cart/items', array('as' => 'cart.items.add', 'uses' => 'Creolab\\Shop\\Controllers\\Cart\\ItemController@store')); Route::put('cart/items/{id}', array('as' => 'cart.items.update', 'uses' => 'Creolab\\Shop\\Controllers\\Cart\\ItemController@update')); Route::delete('cart/items/{id}', array('as' => 'cart.items.remove', 'uses' => 'Creolab\\Shop\\Controllers\\Cart\\ItemController@destroy')); // ! Cart Route::delete('cart/empty', array('as' => 'cart.empty', 'uses' => 'Creolab\\Shop\\Controllers\\Cart\\CartController@emptyItems')); Route::get('cart/empty', array('as' => 'cart.empty', 'uses' => 'Creolab\\Shop\\Controllers\\Cart\\CartController@emptyItems'));
// Pushes simple /board/ requests to their index page. Route::any('/', 'BoardController@getIndex'); // Get the catalog. Route::get('catalog', 'BoardController@getCatalog'); // Get moderator logs Route::get('logs', 'BoardController@getLogs'); // Put new thread Route::put('thread', 'BoardController@putThread'); // Generate post preview. Route::any('post/preview', 'PostController@anyPreview'); // Check if a file exists. Route::get('check-file', 'BoardController@getFile'); // Handle a file upload. Route::post('upload-file', 'BoardController@putFile'); // Routes /board/1 to an index page for a specific pagination point. Route::get('{id}', 'BoardController@getIndex'); // Get single thread. Route::get('thread/{post_id}', 'BoardController@getThread'); // Redirect to a post. Route::get('post/{post_id}', 'BoardController@getThread'); // Put reply to thread. Route::put('thread/{post_id}', 'BoardController@putThread'); }); }); }); Route::group(['domain' => 'static.{domain}.{tld}', 'namespace' => 'Content'], function () { Route::group(['prefix' => "image"], function () { Route::get('{hash}/{filename}', 'ImageController@getImage')->where(['hash' => "[a-f0-9]{32}"]); Route::get('thumb/{hash}/{filename}', 'ImageController@getThumbnail')->where(['hash' => "[a-f0-9]{32}"]); }); });
Route::put('edit', 'AdminCategoryController@edit'); Route::delete('delete', 'AdminCategoryController@delete'); }); Route::group(['prefix' => 'admin_type', 'middleware' => 'oauth'], function () { Route::get('', 'AdminTypeController@index'); Route::get('detail', 'AdminTypeController@detail'); Route::post('create', 'AdminTypeController@create'); Route::put('edit', 'AdminTypeController@edit'); Route::delete('delete', 'AdminTypeController@delete'); }); Route::group(['prefix' => 'admin_brand', 'middleware' => 'oauth'], function () { Route::get('', 'AdminBrandController@index'); Route::get('detail', 'AdminBrandController@detail'); Route::post('create', 'AdminBrandController@create'); Route::put('edit', 'AdminBrandController@edit'); Route::delete('delete', 'AdminBrandController@delete'); }); Route::group(['prefix' => 'admin_size', 'middleware' => 'oauth'], function () { Route::get('', 'AdminSizeController@index'); Route::get('detail', 'AdminSizeController@detail'); Route::post('create', 'AdminSizeController@create'); Route::put('edit', 'AdminSizeController@edit'); Route::delete('delete', 'AdminSizeController@delete'); }); Route::group(['prefix' => 'admin_menu', 'middleware' => 'oauth'], function () { Route::get('', 'AdminMenuController@index'); Route::get('detail', 'AdminMenuController@detail'); Route::post('create', 'AdminMenuController@create'); Route::put('edit', 'AdminMenuController@edit'); Route::delete('delete', 'AdminMenuController@delete'); });
die('object was ' . $object->name); }); Route::get('cleanup', function () { FieldController::cleanup(); FileController::findOrphans(); FileController::cleanup(); }); # Complex instance routing, optionally with linked_id for related objects Route::get('/{object_name}/delete/{instance_id}', 'InstanceController@delete'); Route::get('/{object_name}', 'InstanceController@index'); Route::get('/{object_name}/export', 'InstanceController@export'); Route::get('/{object_name}/create/{linked_id?}', 'InstanceController@create'); Route::post('/{object_name}/reorder', 'InstanceController@reorder'); Route::post('/{object_name}/{linked_id?}', 'InstanceController@store'); Route::get('/{object_name}/{instance_id}/{linked_id?}', 'InstanceController@edit'); Route::put('/{object_name}/{instance_id}/{linked_id?}', 'InstanceController@update'); Route::delete('/{object_name}/{instance_id}', 'InstanceController@destroy'); }); } }); Route::filter('user', function () { if (empty(Auth::user()->role) || Auth::user()->role > 3) { return Redirect::action('ObjectController@index'); } }); Route::filter('admin', function () { if (empty(Auth::user()->role) || Auth::user()->role > 2) { return Redirect::action('ObjectController@index'); } }); Route::filter('programmer', function () {
Route::patch('adverts/{id}', 'AdvertsController@update'); Route::post('adverts', 'AdvertsController@store'); Route::get('adverts/{id}/edit', 'AdvertsController@edit'); Route::delete('adverts/{id}', ['as' => 'advert.destroy', 'uses' => 'AdvertsController@destroy']); Route::delete('user/delete/{id}', ['as' => 'user.destroy', 'uses' => 'UserController@destroy']); Route::delete('tags/{name}', ['as' => 'tags.destroy', 'uses' => 'TagsController@destroy']); Route::post('admin/users/give/{id}', ['as' => 'admin.give', 'uses' => 'UserController@giveAdmin']); Route::post('admin/users/take/{id}', ['as' => 'admin.take', 'uses' => 'UserController@takeAdmin']); Route::get('tags/{tags}', 'TagsController@show'); Route::get('adverts', 'AdvertsController@index'); Route::get('adverts/{id}', 'AdvertsController@show'); Route::get('/user/edit/{id}', 'UserController@edit'); Route::put('/user/edit/{id}', 'UserController@update'); Route::patch('/user/edit/{id}', 'UserController@update'); Route::get('user/edit/password/{id}', 'UserController@editPassword'); Route::put('user/edit/password/{id}', 'UserController@updatePassword'); Route::patch('user/edit/password/{id}', 'UserController@updatePassword'); Route::get('/user/show', 'UserController@show'); Route::get('/admin/tags', 'TagsController@adminTags'); Route::get('/admin/users', 'UserController@adminIndex'); Route::get('/admin/adverts', 'AdvertsController@adminAdverts'); Route::get('contact', ['as' => 'contact', 'uses' => 'ContactController@create']); Route::post('contact', ['as' => 'contact_store', 'uses' => 'ContactController@store']); Route::post('/adverts/message', ['as' => 'contact_advert_store', 'uses' => 'ContactController@advertStore']); // Route::get('/adverts/{id}', ['as' => 'contact_advert', 'uses' => 'ContactController@advertStore']); Route::post('/search/', 'AdvertsController@searchAdverts'); //Route::get('/search/', 'AdvertController@searchAdverts'); Route::patch('adverts/expired/{id}', ['as' => 'advert.setExpired', 'uses' => 'AdvertsController@setExpired']); Route::patch('adverts/available/{id}', ['as' => 'advert.setAvailable', 'uses' => 'AdvertsController@setAvailable']); }); //Route::group(['middleware' => 'web'], function () {
return redirect()->back(1); }]); // Routes del Profesor ********************************** Route::group(['middleware' => ['auth', 'is_profesor']], function () { Route::get('profesor/consultarproyecto', ['as' => 'profesor.consultarproyecto', 'uses' => 'ProfesorActionController@consultProject']); Route::get('profesor/evaluarproyecto/{id}', ['as' => 'profesor.evaluarproyecto', 'uses' => 'ProfesorActionController@evaluarProject']); Route::get('profesor/verpdfs/{id_user}', ['as' => 'profesor.verpdfs', 'uses' => 'ProfesorActionController@verPdfs']); Route::delete('profesor/destroypdf/{id}', ['as' => 'profesor.destroypdf', 'uses' => 'ProfesorActionController@destroyPdf']); Route::get('profesor/verevaluaciones/{id}', ['as' => 'profesor.verevaluaciones', 'uses' => 'ProfesorActionController@showEvaluations']); Route::get('profesor/evaluarproyecto/{id_user}', ['as' => 'profesor.evaluarproyecto', 'uses' => 'ProfesorActionController@evaluarProject']); Route::post('profesor/storeevaluacion', ['as' => 'profesor.evaluacion.store', 'uses' => 'ProfesorActionController@storeEvaluation']); Route::get('profesor/actualizarevaluacion/{id_user}', ['as' => 'profesor.actualizarevaluacion', 'uses' => 'ProfesorActionController@editEvaluation']); Route::put('profesor/updateevaluacion/{id_user}', ['as' => 'profesor.evaluacion.update', 'uses' => 'ProfesorActionController@updateEvaluation']); Route::get('profesor/detalledeevaluacion/{id_user}/{id_evaluador}', ['as' => 'profesor.evaluaciondetalle', 'uses' => 'ProfesorActionController@detailEvaluation']); Route::get('profesor/cambiar-password', ['as' => 'profesor.cambiar', 'uses' => 'ProfesorActionController@changePassword']); Route::put('profesor/update-password', ['as' => 'profesor.update.password', 'uses' => 'ProfesorActionController@updatePassword']); Route::resource('profesor', 'ProfesorActionController'); }); // Routes del Estudiante ********************************** Route::group(['middleware' => ['auth', 'is_estudiante']], function () { Route::get('estudiante/miproyecto/{id_user}', ['as' => 'estudiante.miproyecto', 'uses' => 'EstudianteActionController@miProyecto']); Route::get('estudiante/mispdf/{id_user}', ['as' => 'estudiante.mispdf', 'uses' => 'EstudianteActionController@getListPdfs']); Route::post('estudiante/storepdf/{id_user}', ['as' => 'estudiante.mispdf.store', 'uses' => 'EstudianteActionController@subirPdf']); Route::get('estudiante/evaluaciondetalle/{id_user}', ['as' => 'estudiante.evaluaciondetalle', 'uses' => 'EstudianteActionController@getDetailsEvaluation']); Route::delete('estudiante/destroypdf/{id}', ['as' => 'estudiante.destroypdf', 'uses' => 'EstudianteActionController@destroyPdf']); Route::get('estudiante/misevaluacione/{id_user}', ['as' => 'estudiante.misevaluaciones', 'uses' => 'EstudianteActionController@showEvaluations']); Route::get('estudiante/detallesdeevaluacion/{id_user}/{id_evaluador}', ['as' => 'estudiante.evaluaciondetalle', 'uses' => 'EstudianteActionController@detailEvaluation']); Route::get('estudiante/cambiar-contraseña', ['as' => 'estudiante.cambiar', 'uses' => 'EstudianteActionController@changePassword']); Route::put('estudiante/update-password', ['as' => 'estudiante.update.password', 'uses' => 'EstudianteActionController@updatePassword']); Route::resource('estudiante', 'EstudianteActionController'); });
| */ //Treat merge as patch $method = Request::getMethod(); if (\DreamFactory\Library\Utility\Enums\Verbs::MERGE === strtoupper($method)) { Request::setMethod(\DreamFactory\Library\Utility\Enums\Verbs::PATCH); } Route::get('/', 'SplashController@index'); Route::get('/setup', 'SplashController@createFirstUser'); Route::post('/setup', 'SplashController@createFirstUser'); Route::get('/setup_db', 'SplashController@setupDb'); Route::post('/setup_db', 'SplashController@setupDb'); $resourcePathPattern = '[0-9a-zA-Z-_@&\\#\\!=,:;\\/\\^\\$\\.\\|\\{\\}\\[\\]\\(\\)\\*\\+\\? ]+'; $servicePattern = '[_0-9a-zA-Z-.]+'; Route::group(['prefix' => 'api'], function () use($resourcePathPattern, $servicePattern) { Route::get('{version}/', 'RestController@index'); Route::get('{version}/{service}/{resource?}', 'RestController@handleGET')->where(['service' => $servicePattern, 'resource' => $resourcePathPattern]); Route::post('{version}/{service}/{resource?}', 'RestController@handlePOST')->where(['service' => $servicePattern, 'resource' => $resourcePathPattern]); Route::put('{version}/{service}/{resource?}', 'RestController@handlePUT')->where(['service' => $servicePattern, 'resource' => $resourcePathPattern]); Route::patch('{version}/{service}/{resource?}', 'RestController@handlePATCH')->where(['service' => $servicePattern, 'resource' => $resourcePathPattern]); Route::delete('{version}/{service}/{resource?}', 'RestController@handleDELETE')->where(['service' => $servicePattern, 'resource' => $resourcePathPattern]); }); Route::group(['prefix' => 'rest'], function () use($resourcePathPattern, $servicePattern) { Route::get('/', 'RestController@index'); Route::get('{service}/{resource?}', 'RestController@handleV1GET')->where(['service' => $servicePattern, 'resource' => $resourcePathPattern]); Route::post('{service}/{resource?}', 'RestController@handleV1POST')->where(['service' => $servicePattern, 'resource' => $resourcePathPattern]); Route::put('{service}/{resource?}', 'RestController@handleV1PUT')->where(['service' => $servicePattern, 'resource' => $resourcePathPattern]); Route::patch('{service}/{resource?}', 'RestController@handleV1PATCH')->where(['service' => $servicePattern, 'resource' => $resourcePathPattern]); Route::delete('{service}/{resource?}', 'RestController@handleV1DELETE')->where(['service' => $servicePattern, 'resource' => $resourcePathPattern]); }); Route::get('{storage}/{path}', 'StorageController@handleGET')->where(['storage' => $servicePattern, 'path' => $resourcePathPattern]);
#流程 Route::get('/flow', ['as' => 'admin.flow', 'uses' => 'Admin\\AdminBusinessController@getFlow']); #-------------------- # 业务管理 END #-------------------- #-------------------- # 系统管理 START #-------------------- #动态设置 [包含动态设置分组] Route::resource('setting', 'Admin\\AdminSettingController'); //动态设置 Route::resource('setting_type', 'Admin\\AdminSettingTypeController'); //动态设置分组 #静态系统配置 Route::get('/system_option', ['as' => 'admin.system_option.index', 'uses' => 'Admin\\AdminSystemOptionController@getIndex']); Route::put('/system_option', ['as' => 'admin.system_option.update', 'uses' => 'Admin\\AdminSystemOptionController@putUpdate']); #系统日志 Route::resource('system_log', 'Admin\\AdminSystemLogController'); //系统日志 //Route::any('{all?}', 'HomeController@index')->where('all', '.+'); #-------------------- # 系统管理 END #-------------------- }); /* |-------------------------------------------------------------------------- | 网站前台博客 |-------------------------------------------------------------------------- */ Route::group(array(), function () { $Blog = 'BlogController@';
Route::get('relasi-5', function () { $ngoding = Hobi::where('hobi', '=', 'Ngoding')->first(); foreach ($ngoding->mahasiswa as $temp) { echo '<li> Nama : ' . $temp->nama . ' <strong>' . $temp->nim . '</strong></li>'; } }); Route::get('eloquent', function () { $mahasiswa = Mahasiswa::with('wali', 'dosen', 'hobi')->get(); return View::make('eloquent', compact('mahasiswa')); }); //DUMMY DATA-FAKER LIBRARY get('blog', 'BlogController@index'); get('blog/{slug}', 'BlogController@showPost'); //FORM DAN VIEW Route::get('article/create', 'ArticleController@add'); Route::get('article', 'ArticleController@index'); //Route::get('article/{id}','ArticleController@baca'); Route::post('article', 'ArticleController@simpan'); //MIDDLEWARE Route::get('admin/profile', ['middleware' => 'auth', function () { // }]); Route::get('/', ['middleware' => ['first', 'second'], function () { // }]); Route::get('/', function () { // })->middleware(['first', 'second']); Route::put('post/{id}', ['middleware' => 'role:editor', function ($id) { // }]);
Route::get('images/perhour/{days?}', 'Controllers\\ImageController@getImagesPerHour'); Route::get('images/perday/{days?}', 'Controllers\\ImageController@getImagesPerDay'); Route::get('images/perweekday/{days?}', 'Controllers\\ImageController@getAverageImagesPerWeekDay'); Route::get('images/{date}/hours', 'Controllers\\ImageController@getImagesPerHourForDay'); Route::get('images/{date}/{take?}/{page?}', 'Controllers\\ImageController@getImages'); Route::get('images/{date}/{take?}/{page?}/{time?}', 'Controllers\\ImageController@getImagesFromStartTime'); }); // ------------------------- // REST API with basic auth Route::group(['before' => 'auth.basic'], function () { // -------------------- // Settings Controller Route::get('name', 'Controllers\\SettingsController@getName'); Route::put('name', 'Controllers\\SettingsController@updateName'); Route::get('condition', 'Controllers\\SettingsController@getConditions'); Route::put('condition', 'Controllers\\SettingsController@updateConditions'); Route::get('condition/enabled', 'Controllers\\SettingsController@getConditionEnabled'); Route::put('condition/enabled', 'Controllers\\SettingsController@updateConditionEnabled'); Route::get('io', 'Controllers\\SettingsController@getIos'); Route::put('io', 'Controllers\\SettingsController@updateIos'); Route::get('io/webhook', 'Controllers\\SettingsController@getIoWebhook'); Route::put('io/webhook', 'Controllers\\SettingsController@updateIoWebhook'); }); }); /********************************** * * API V2 * **********************************/ Route::group(array('prefix' => 'api/v2'), function () { });
Route::resource('perfil', 'PerfilesController'); Route::resource('eventos', 'EventosController'); Route::get('eventosjson', 'EventosController@alleventjson'); }); //Route::group(['middleware' => 'autenticacion'], function () { Route::resource('contactos', 'ContactosController'); //}); Route::group(['middleware' => 'autenticacion', 'as' => 'logout'], function () { Route::get('logout', 'SessionsController@destroy'); }); Route::post('pass/{users}', ['as' => 'users.updatepass', 'uses' => 'UsersController@updatepass']); Route::get('/pdf', 'PdfController@index'); Route::any('edificios/message/{edificios}', ['middleware' => 'autenticacion', 'as' => 'edificios.message', 'uses' => 'EdificiosController@message']); Route::get('propietario/dashboard', ['middleware' => 'autenticacion', 'as' => 'propietarios.dashboard', 'uses' => 'DashboardsController@propietario']); Route::get('inquilino/dashboard', ['middleware' => 'autenticacion', 'as' => 'inquilinos.dashboard', 'uses' => 'DashboardsController@inquilino']); Route::get('administrador/dashboard', ['middleware' => 'autenticacion', 'as' => 'administrador.dashboard', 'uses' => 'DashboardsController@administrador']); Route::get('sistema/dashboard', ['middleware' => 'autenticacion', 'as' => 'sistema.dashboard', 'uses' => 'DashboardsController@sistema']); //Route::get('test', [ // 'middleware' => 'autenticacion', 'as' => 'test', 'uses' => 'GastosController@test' //]); Route::get('test', ['as' => 'test', 'uses' => 'GastosController@test']); Route::get('edificios/propietarios/{unidad}', ['middleware' => 'autenticacion', 'as' => 'unidad.propietarios.show', 'uses' => 'UnidadesController@propietarios']); Route::post('edificios/propietarios/{unidad}', ['middleware' => 'autenticacion', 'as' => 'unidad.propietarios.store', 'uses' => 'UnidadesController@updatepropietario']); Route::get('edificios/inquilinos/{unidad}', ['middleware' => 'autenticacion', 'as' => 'unidad.inquilinos.show', 'uses' => 'UnidadesController@inquilinos']); Route::post('edificios/inquilinos/{unidad}', ['middleware' => 'autenticacion', 'as' => 'unidad.inquilinos.store', 'uses' => 'UnidadesController@updateinquilino']); Route::any('validate/usuarioemail', ['middleware' => 'autenticacion', 'as' => 'validate.usuarioemail', 'uses' => 'ValidationsController@usuarioEmail']); Route::any('validate/edificiocuit', ['middleware' => 'autenticacion', 'as' => 'validate.edificiocuit', 'uses' => 'ValidationsController@edificioCuit']); Route::any('validate/edificiosuterh', ['middleware' => 'autenticacion', 'as' => 'validate.edificiosuterh', 'uses' => 'ValidationsController@edificioSuterh']); Route::put('perfil/{perfil}/password', ['middleware' => 'autenticacion', 'as' => 'perfil.password', 'uses' => 'PerfilesController@password']); Route::any('validate/unidad', ['middleware' => 'autenticacion', 'as' => 'validate.unidad', 'uses' => 'ValidationsController@unidad']); Route::any('validate/administradorcuit', ['middleware' => 'autenticacion', 'as' => 'validate.administradorcuit', 'uses' => 'ValidationsController@administradorCuit']);
<?php Route::get('/', 'Controller@index'); Route::get('/tasks', 'TasksController@getTasksAll'); Route::get('/tasks/{id}', 'TasksController@getTaskById'); Route::post('/tasks', 'TasksController@createTask'); Route::put('/tasks/{id}', 'TasksController@updateTaskById'); Route::delete('/tasks/{id}', 'TasksController@deleteTaskById'); /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | This route group applies the "web" middleware group to every route | it contains. The "web" middleware group is defined in your HTTP | kernel and includes session state, CSRF protection, and more. | */ /* Route::group(['middleware' => ['web']], function () { // }); */
Route::post('forgot', ['as' => 'sentinel.reset.request', 'uses' => 'RegistrationController@sendResetPasswordEmail']); Route::get('reset/{hash}/{code}', ['as' => 'sentinel.reset.form', 'uses' => 'RegistrationController@passwordResetForm']); Route::post('reset/{hash}/{code}', ['as' => 'sentinel.reset.password', 'uses' => 'RegistrationController@resetPassword']); // Sentinel Profile Route::get('profile', ['as' => 'sentinel.profile.show', 'uses' => 'ProfileController@show']); Route::get('profile/edit', ['as' => 'sentinel.profile.edit', 'uses' => 'ProfileController@edit']); Route::put('profile', ['as' => 'sentinel.profile.update', 'uses' => 'ProfileController@update']); Route::post('profile/password', ['as' => 'sentinel.profile.password', 'uses' => 'ProfileController@changePassword']); // Sentinel Users Route::get('users', ['as' => 'sentinel.users.index', 'uses' => 'UserController@index']); Route::get('users/create', ['as' => 'sentinel.users.create', 'uses' => 'UserController@create']); Route::post('users', ['as' => 'sentinel.users.store', 'uses' => 'UserController@store']); Route::get('users/{hash}', ['as' => 'sentinel.users.show', 'uses' => 'UserController@show']); Route::get('users/{hash}/edit', ['as' => 'sentinel.users.edit', 'uses' => 'UserController@edit']); Route::post('users/{hash}/password', ['as' => 'sentinel.password.change', 'uses' => 'UserController@changePassword']); Route::post('users/{hash}/memberships', ['as' => 'sentinel.users.memberships', 'uses' => 'UserController@updateGroupMemberships']); Route::put('users/{hash}', ['as' => 'sentinel.users.update', 'uses' => 'UserController@update']); Route::delete('users/{hash}', ['as' => 'sentinel.users.destroy', 'uses' => 'UserController@destroy']); Route::get('users/{hash}/suspend', ['as' => 'sentinel.users.suspend', 'uses' => 'UserController@suspend']); Route::get('users/{hash}/unsuspend', ['as' => 'sentinel.users.unsuspend', 'uses' => 'UserController@unsuspend']); Route::get('users/{hash}/ban', ['as' => 'sentinel.users.ban', 'uses' => 'UserController@ban']); Route::get('users/{hash}/unban', ['as' => 'sentinel.users.unban', 'uses' => 'UserController@unban']); // Sentinel Groups Route::get('groups', ['as' => 'sentinel.groups.index', 'uses' => 'GroupController@index']); Route::get('groups/create', ['as' => 'sentinel.groups.create', 'uses' => 'GroupController@create']); Route::post('groups', ['as' => 'sentinel.groups.store', 'uses' => 'GroupController@store']); Route::get('groups/{hash}', ['as' => 'sentinel.groups.show', 'uses' => 'GroupController@show']); Route::get('groups/{hash}/edit', ['as' => 'sentinel.groups.edit', 'uses' => 'GroupController@edit']); Route::put('groups/{hash}', ['as' => 'sentinel.groups.update', 'uses' => 'GroupController@update']); Route::delete('groups/{hash}', ['as' => 'sentinel.groups.destroy', 'uses' => 'GroupController@destroy']); });
Route::post('/entry/store', 'EntryController@store'); Route::get('/test', function () { return view('welcome'); }); // 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'); Route::get('/api/loggedUser', 'TaskController@loggedUser'); Route::get('category/create', 'CategoryController@create'); Route::post('category/store', 'CategoryController@store'); Route::get('category', 'CategoryController@index'); Route::get('/entry/getdoc/{id}', 'EntryController@download'); Route::get('/task', 'TaskController@index'); Route::get('/task/create', 'TaskController@create'); Route::get('/task/delete/{id}', 'TaskController@delete'); Route::post('/task/store', 'TaskController@store'); Route::get('/angular/task', 'TaskController@angularTask'); Route::get('/api/tasks', 'TaskController@apitasks'); Route::post('/api/task', 'TaskController@apitasksPost'); Route::put('/api/task/{id}', 'TaskController@apitasksPut'); Route::delete('/api/task/{id}', 'TaskController@apitaskDelete'); Route::get('/api/users', 'TaskController@apiUsers'); Route::group(['prefix' => 'api'], function () { Route::resource('authenticate', 'AuthenticateController', ['only' => ['index']]); Route::post('authenticate', 'AuthenticateController@authenticate'); Route::get('authenticate/user', 'AuthenticateController@getAuthenticatedUser'); });
<?php /* |-------------------------------------------------------------------------- | Mage2 Cart Module Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an mage2 cart modules. | It's a breeze. Simply tell mage2 cart module the URI it should respond to | and give it the controller to call when that URI is requested. | */ Route::group(['middleware' => ['web', 'website'], 'namespace' => "Mage2\\Cart\\Controllers"], function () { Route::get('/add-to-cart/{id}', ['as' => 'cart.add-to-cart', 'uses' => 'CartController@addToCart']); Route::get('/cart/view', ['as' => 'cart.view', 'uses' => 'CartController@view']); Route::put('/cart/update', ['as' => 'cart.update', 'uses' => 'CartController@update']); Route::get('/cart/destroy/{id}', ['as' => 'cart.destroy', 'uses' => 'CartController@destroy']); });