当前位置: 首页>>代码示例>>PHP>>正文


PHP Route::put方法代码示例

本文整理汇总了PHP中Route::put方法的典型用法代码示例。如果您正苦于以下问题:PHP Route::put方法的具体用法?PHP Route::put怎么用?PHP Route::put使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Route的用法示例。


在下文中一共展示了Route::put方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: routes

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']);
                });
            });
        });
    });
}
开发者ID:Thorazine,项目名称:cms,代码行数:34,代码来源:routes.php

示例2: add_routes_resources

/**
 * 
 * @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"));
}
开发者ID:h0akd,项目名称:corecms,代码行数:14,代码来源:functions.php

示例3: setUp

 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'));
 }
开发者ID:moszkva,项目名称:angie,代码行数:10,代码来源:LaravelRouteParserTest.php

示例4: install

 /**
  * 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");
 }
开发者ID:foothing,项目名称:laravel-repository-controller,代码行数:17,代码来源:RouteInstaller.php

示例5: setUp

 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');
 }
开发者ID:moszkva,项目名称:angie,代码行数:13,代码来源:GeneratorTest.php

示例6: routes

 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');
     });
 }
开发者ID:aldozumaran,项目名称:acl,代码行数:18,代码来源:Acl.php

示例7: returnRoutes

 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'));
     });
 }
开发者ID:Grapheme,项目名称:newyork.bar,代码行数:19,代码来源:admin_dicvals.controller.php

示例8: env

<?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')]);
开发者ID:Charu91,项目名称:Wowtables1,代码行数:30,代码来源:experiences.php

示例9: function

<?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']);
});
开发者ID:NuclearCMS,项目名称:Nuclear,代码行数:17,代码来源:documents.php

示例10:

<?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');
开发者ID:gustperz,项目名称:viaja_seguro,代码行数:7,代码来源:Pasajeros.php

示例11: function

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');
});
开发者ID:tprifti,项目名称:Blog,代码行数:31,代码来源:routes.php

示例12: array

 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'));
开发者ID:jargij,项目名称:invoiceninja,代码行数:31,代码来源:routes.php

示例13: function

/*
|--------------------------------------------------------------------------
| 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']);
});
开发者ID:gayankalhara,项目名称:planmyevent,代码行数:31,代码来源:routes.php

示例14: function

| 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');
});
开发者ID:872131018,项目名称:groundedEarth,代码行数:31,代码来源:routes.php

示例15: function

<?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');
开发者ID:rafaelfoxdev,项目名称:laravel-angular,代码行数:25,代码来源:routes.php


注:本文中的Route::put方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。