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


PHP Router::put方法代码示例

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


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

示例1: map

 /**
  * Define the routes for the application.
  *
  * @param \Illuminate\Routing\Router $router
  *
  * @return void
  */
 public function map(Router $router)
 {
     $router->group(['namespace' => $this->namespace], function (Router $router) {
         /*
          * Admin routes
          */
         $router->get('admin/menus', 'AdminController@index')->name('admin::index-menus');
         $router->get('admin/menus/create', 'AdminController@create')->name('admin::create-menu');
         $router->get('admin/menus/{menu}/edit', 'AdminController@edit')->name('admin::edit-menu');
         $router->post('admin/menus', 'AdminController@store')->name('admin::store-menu');
         $router->put('admin/menus/{menu}', 'AdminController@update')->name('admin::update-menu');
         $router->get('admin/menus/{menu}/menulinks', 'MenulinksAdminController@index')->name('admin::index-menulinks');
         $router->get('admin/menus/{menu}/menulinks/create', 'MenulinksAdminController@create')->name('admin::create-menulink');
         $router->get('admin/menus/{menu}/menulinks/{menulink}/edit', 'MenulinksAdminController@edit')->name('admin::edit-menulink');
         $router->post('admin/menus/{menu}/menulinks', 'MenulinksAdminController@store')->name('admin::store-menulink');
         $router->put('admin/menus/{menu}/menulinks/{menulink}', 'MenulinksAdminController@update')->name('admin::update-menulink');
         $router->post('admin/menulinks/sort', 'MenulinksAdminController@sort')->name('admin::sort-menulinks');
         /*
          * API routes
          */
         $router->get('api/menus', 'ApiController@index')->name('api::index-menus');
         $router->put('api/menus/{menu}', 'ApiController@update')->name('api::update-menu');
         $router->delete('api/menus/{menu}', 'ApiController@destroy')->name('api::destroy-menu');
         $router->get('api/menulinks', 'MenulinksApiController@index')->name('api::index-menulinks');
         $router->put('api/menulinks/{menulink}', 'MenulinksApiController@update')->name('api::update-menulink');
         $router->delete('api/menulinks/{menulink}', 'MenulinksApiController@destroy')->name('api::destroy-menulink');
     });
 }
开发者ID:typicms,项目名称:menus,代码行数:35,代码来源:RouteServiceProvider.php

示例2: map

 /**
  * Define the routes for the application.
  *
  * @param \Illuminate\Routing\Router $router
  *
  * @return void
  */
 public function map(Router $router)
 {
     $router->group(['namespace' => $this->namespace], function (Router $router) {
         /*
          * Front office routes
          */
         if ($page = TypiCMS::getPageLinkedToModule('galleries')) {
             $options = $page->private ? ['middleware' => 'auth'] : [];
             foreach (config('translatable.locales') as $lang) {
                 if ($page->translate($lang)->status && ($uri = $page->uri($lang))) {
                     $router->get($uri, $options + ['as' => $lang . '.galleries', 'uses' => 'PublicController@index']);
                     $router->get($uri . '/{slug}', $options + ['as' => $lang . '.galleries.slug', 'uses' => 'PublicController@show']);
                 }
             }
         }
         /*
          * Admin routes
          */
         $router->get('admin/galleries', 'AdminController@index')->name('admin::index-galleries');
         $router->get('admin/galleries/create', 'AdminController@create')->name('admin::create-gallery');
         $router->get('admin/galleries/{gallery}/edit', 'AdminController@edit')->name('admin::edit-gallery');
         $router->post('admin/galleries', 'AdminController@store')->name('admin::store-gallery');
         $router->put('admin/galleries/{gallery}', 'AdminController@update')->name('admin::update-gallery');
         /*
          * API routes
          */
         $router->get('api/galleries', 'ApiController@index')->name('api::index-galleries');
         $router->put('api/galleries/{gallery}', 'ApiController@update')->name('api::update-gallery');
         $router->delete('api/galleries/{gallery}', 'ApiController@destroy')->name('api::destroy-gallery');
     });
 }
开发者ID:webfactorybulgaria,项目名称:Galleries,代码行数:38,代码来源:RouteServiceProvider.php

示例3: map

 /**
  * Define the routes for the application.
  *
  * @param \Illuminate\Routing\Router $router
  *
  * @return void
  */
 public function map(Router $router)
 {
     $router->group(['namespace' => $this->namespace], function (Router $router) {
         /*
          * Front office routes
          */
         if ($page = TypiCMS::getPageLinkedToModule('news')) {
             $options = $page->private ? ['middleware' => 'auth'] : [];
             foreach (config('translatable.locales') as $lang) {
                 if ($uri = $page->uri($lang)) {
                     $router->get($uri, $options + ['as' => $lang . '.news', 'uses' => 'PublicController@index']);
                     $router->get($uri . '/{slug}', $options + ['as' => $lang . '.news.slug', 'uses' => 'PublicController@show']);
                 }
             }
         }
         /*
          * Admin routes
          */
         $router->get('admin/news', ['as' => 'admin.news.index', 'uses' => 'AdminController@index']);
         $router->get('admin/news/create', ['as' => 'admin.news.create', 'uses' => 'AdminController@create']);
         $router->get('admin/news/{news}/edit', ['as' => 'admin.news.edit', 'uses' => 'AdminController@edit']);
         $router->post('admin/news', ['as' => 'admin.news.store', 'uses' => 'AdminController@store']);
         $router->put('admin/news/{news}', ['as' => 'admin.news.update', 'uses' => 'AdminController@update']);
         /*
          * API routes
          */
         $router->get('api/news', ['as' => 'api.news.index', 'uses' => 'ApiController@index']);
         $router->put('api/news/{news}', ['as' => 'api.news.update', 'uses' => 'ApiController@update']);
         $router->delete('api/news/{news}', ['as' => 'api.news.destroy', 'uses' => 'ApiController@destroy']);
     });
 }
开发者ID:thierry88,项目名称:News,代码行数:38,代码来源:RouteServiceProvider.php

示例4: map

 /**
  * Define the routes for the application.
  *
  * @param \Illuminate\Routing\Router $router
  *
  * @return void
  */
 public function map(Router $router)
 {
     $router->group(['namespace' => $this->namespace], function (Router $router) {
         /*
          * Front office routes
          */
         if ($page = TypiCMS::getPageLinkedToModule('newsletter')) {
             $options = $page->private ? ['middleware' => 'auth'] : [];
             foreach (config('translatable.locales') as $lang) {
                 if ($uri = $page->uri($lang)) {
                     $router->get($uri, $options + ['as' => $lang . '.newsletter', 'uses' => 'PublicController@form']);
                     $router->get($uri . '/sent', $options + ['as' => $lang . '.newsletter.sent', 'uses' => 'PublicController@sent']);
                     $router->post($uri, $options + ['as' => $lang . '.newsletter.store', 'uses' => 'PublicController@store']);
                 }
             }
         }
         /*
          * Admin routes
          */
         $router->get('admin/newsletter', 'AdminController@index')->name('admin::index-newsletter');
         $router->get('admin/newsletter/create', 'AdminController@create')->name('admin::create-newsletter');
         $router->get('admin/newsletter/export', 'AdminController@export')->name('admin::export-newsletter');
         $router->get('admin/newsletter/{newsletter}/edit', 'AdminController@edit')->name('admin::edit-newsletter');
         $router->post('admin/newsletter', 'AdminController@store')->name('admin::store-newsletter');
         $router->put('admin/newsletter/{newsletter}', 'AdminController@update')->name('admin::update-newsletter');
         /*
          * API routes
          */
         $router->get('api/newsletter', 'ApiController@index')->name('api::index-newsletter');
         $router->put('api/newsletter/{newsletter}', 'ApiController@update')->name('api::update-newsletter');
         $router->delete('api/newsletter/{newsletter}', 'ApiController@destroy')->name('api::destroy-newsletter');
     });
 }
开发者ID:webfactorybulgaria,项目名称:newsletter,代码行数:40,代码来源:RouteServiceProvider.php

示例5: map

 /**
  * Define the routes for the application.
  *
  * @param \Illuminate\Routing\Router $router
  *
  * @return void
  */
 public function map(Router $router)
 {
     $router->group(['namespace' => $this->namespace], function (Router $router) {
         /*
          * Public routes
          */
         $router->get('comments', 'PublicController@index')->name('public::index-comments');
         $router->post('comments', 'PublicController@store')->name('public::store-comment');
         /*
          * Admin routes
          */
         $router->get('admin/comments', 'AdminController@index')->name('admin::index-comments');
         $router->get('admin/comments/create', 'AdminController@create')->name('admin::create-comment');
         $router->get('admin/comments/{comment}/edit', 'AdminController@edit')->name('admin::edit-comment');
         $router->post('admin/comments', 'AdminController@store')->name('admin::store-comment');
         $router->put('admin/comments/{comment}', 'AdminController@update')->name('admin::update-comment');
         $router->post('admin/comments/sort', 'AdminController@sort')->name('admin::sort-comments');
         /*
          * API routes
          */
         $router->get('api/comments', 'ApiController@index')->name('api::index-comments');
         $router->put('api/comments/{comment}', 'ApiController@update')->name('api::update-comment');
         $router->delete('api/comments/{comment}', 'ApiController@destroy')->name('api::destroy-comment');
     });
 }
开发者ID:webfactorybulgaria,项目名称:comments,代码行数:32,代码来源:RouteServiceProvider.php

示例6: map

 /**
  * Define the routes for the application.
  *
  * @param \Illuminate\Routing\Router $router
  *
  * @return void
  */
 public function map(Router $router)
 {
     $router->group(['namespace' => $this->namespace], function (Router $router) {
         $router->group(['middleware' => 'web'], function (Router $router) {
             foreach (config('translatable.locales') as $lang) {
                 $uri = trim(TypiCMS::homeUri($lang), '/');
                 $router->get($uri . '/login', 'AuthController@getLogin')->name($lang . '.login');
                 $router->post($uri . '/login', 'AuthController@postLogin');
             }
         });
         /*
          * Front office routes
          */
         $router->group(['prefix' => 'auth', 'middleware' => 'web'], function (Router $router) {
             // Registration
             $router->get('register', 'RegistrationController@getRegister')->name('register');
             $router->post('register', 'RegistrationController@postRegister');
             $router->get('activate/{token}', 'RegistrationController@confirmEmail')->name('activate');
             // Login
             $router->get('login', 'AuthController@getLogin')->name('login');
             $router->post('login', 'AuthController@postLogin');
             // Logout
             $router->get('logout', 'AuthController@getLogout')->name('logout');
             // Request new password
             $router->get('resetpassword', 'PasswordController@getEmail')->name('resetpassword');
             $router->post('resetpassword', 'PasswordController@postEmail');
             // Set new password
             $router->get('changepassword/{token}', 'PasswordController@getReset')->name('changepassword');
             $router->post('changepassword/{token}', 'PasswordController@postReset');
         });
         /*
          * Admin routes
          */
         $router->get('admin/users', 'AdminController@index')->name('admin::index-users');
         $router->get('admin/users/create', 'AdminController@create')->name('admin::create-user');
         $router->get('admin/users/{user}/edit', 'AdminController@edit')->name('admin::edit-user');
         $router->post('admin/users', 'AdminController@store')->name('admin::store-user');
         $router->put('admin/users/{user}', 'AdminController@update')->name('admin::update-user');
         $router->post('admin/users/current/updatepreferences', 'AdminController@postUpdatePreferences')->name('admin::update-preferences');
         /*
          * API routes
          */
         $router->get('api/users', 'ApiController@index')->name('api::index-users');
         $router->put('api/users/{user}', 'ApiController@update')->name('api::update-user');
         $router->delete('api/users/{user}', 'ApiController@destroy')->name('api::destroy-user');
         /*
          * Social routes
          */
         if (config()->get('auth.social_users')) {
             $router->get('/social/redirect/{provider}', 'SocialController@getSocialRedirect')->name('social.redirect');
             $router->get('/social/handle/{provider}', 'SocialController@getSocialHandle')->name('social.handle');
         }
     });
 }
开发者ID:webfactorybulgaria,项目名称:users,代码行数:61,代码来源:RouteServiceProvider.php

示例7: defineRoutes

 private function defineRoutes()
 {
     $this->router->get("hook", ["uses" => "Menus\\MenuController@showMeTheAreas"]);
     $this->router->group(['prefix' => "dashboard/menu", 'namespace' => "Menus"], function () {
         $this->router->get('/place', ['as' => 'menu.place', 'uses' => 'MenuController@getPlace']);
         $this->router->get('/create', ['as' => 'menu.create', 'uses' => 'MenuController@getCreate']);
         $this->router->post('/create', ['as' => 'menu.create.post', 'uses' => 'MenuController@postCreate']);
         $this->router->get('/{_id}', ['as' => 'menu.update', 'uses' => 'MenuController@getUpdate']);
         $this->router->put('/update/{_id}', ['as' => 'menu.update.put', 'uses' => 'MenuController@putUpdate']);
         $this->router->get('/', ['as' => 'menu.list', 'uses' => 'MenuController@getList']);
         $this->router->post('/update/{_id}/order', ['as' => 'menu.update.order.put', 'uses' => 'MenuController@postMenuOrder']);
         $this->router->put('/update/{_id}/item', ['as' => 'menu.update.item.put', 'uses' => 'MenuController@putMenuItem']);
         $this->router->post('/update/{_id}/add-item', ['as' => 'menu.update.add-item.post', 'uses' => 'MenuController@postAddItem']);
         $this->router->delete('/delete/{_id}/item', ['as' => 'menu.delete.item.delete', 'uses' => 'MenuController@deleteItem']);
     });
 }
开发者ID:PhonemeCms,项目名称:cms,代码行数:16,代码来源:MenusServiceProvider.php

示例8: registerUpdate

 private function registerUpdate($modelName, $controller)
 {
     $url = sprintf('%s/{id}', $this->toUrlName($modelName));
     $routeName = $this->getUpdateName($modelName);
     $action = $controller . '@update';
     $this->router->put($url, ['as' => $routeName, 'uses' => $action]);
 }
开发者ID:hramose,项目名称:Auja-Laravel,代码行数:7,代码来源:AujaRouter.php

示例9: map

 public function map(Router $router)
 {
     // Index of Panel
     $router->get('/', ['as' => 'index', 'middleware' => 'auth', 'uses' => 'Base\\IndexController@getIndex']);
     // Handle Index. Redirect /index to /
     $router->get('/index', function () {
         return redirect()->route('index');
     });
     // Password Generation
     $router->get('/password-gen/{length}', ['as' => 'password-gen', 'middleware' => 'auth', 'uses' => 'Base\\IndexController@getPassword']);
     // Account Routes
     $router->group(['profix' => 'account', 'middleware' => ['auth', 'csrf']], function () use($router) {
         $router->get('account', ['as' => 'account', 'uses' => 'Base\\IndexController@getAccount']);
         $router->post('/account/password', ['uses' => 'Base\\IndexController@postAccountPassword']);
         $router->post('/account/email', ['uses' => 'Base\\IndexController@postAccountEmail']);
     });
     // TOTP Routes
     $router->group(['prefix' => 'account/security', 'middleware' => ['auth', 'csrf']], function () use($router) {
         $router->get('/', ['as' => 'account.security', 'uses' => 'Base\\IndexController@getAccountSecurity']);
         $router->get('/revoke/{id}', ['as' => 'account.security.revoke', 'uses' => 'Base\\IndexController@getRevokeSession']);
         $router->put('/', ['uses' => 'Base\\IndexController@putAccountTotp']);
         $router->post('/', ['uses' => 'Base\\IndexController@postAccountTotp']);
         $router->delete('/', ['uses' => 'Base\\IndexController@deleteAccountTotp']);
     });
 }
开发者ID:Pterodactyl,项目名称:Panel,代码行数:25,代码来源:BaseRoutes.php

示例10: setup

 public function setup(Router $router)
 {
     // Need to be loaded first.
     $this->route('cms', function ($router) {
         $router->get('/', 'IndexController@index');
         $router->get('logout', 'Auth\\AuthController@logout');
         $router->get('login', 'Auth\\AuthController@index');
         $router->post('login', 'Auth\\AuthController@authenticate');
     });
     // API route to show that it's there.
     $this->route('api', function ($router) {
         $router->get('/', 'REST\\ModelController@index');
         $router->get('/{model}', 'REST\\ModelController@fetchAll')->middleware(['model']);
         $router->get('/{model}/{id}', 'REST\\ModelController@fetch')->middleware(['model']);
         $router->post('/{model}', 'REST\\ModelController@create')->middleware(['auth', 'model']);
         $router->put('/{model}/{id}', 'REST\\ModelController@update')->middleware(['auth', 'model']);
         $router->delete('/{model}/{id}', 'REST\\ModelController@destroy')->middleware(['auth', 'model']);
     });
     // Media uploading routes and controller.
     $this->route('cms', function ($router) {
         $router->post(Media::getLabel('slug') . '/upload', ['as' => 'mediaUpload', 'uses' => 'MediaController@upload']);
         $router->get(Media::getLabel('slug') . '/list', ['as' => 'mediaList', 'uses' => 'MediaController@select']);
     });
     $this->basicSetup();
 }
开发者ID:breachofmind,项目名称:birdmin,代码行数:25,代码来源:System.php

示例11: map

 /**
  * Define the routes for the application.
  *
  * @param  \Illuminate\Routing\Router  $router
  * @return void
  */
 public function map(Router $router)
 {
     $router->group(['namespace' => $this->namespace], function ($router) {
         $router->group(['before' => 'ui|csfr', 'middleware' => 'theme'], function ($router) {
             // $router->get('session/start', array('as' => 'session.start', 'uses' => 'SessionController@getStart'));
             // $router->post('session/start', array('as' => 'session.post', 'uses' => 'SessionController@postStart'));
             $router->resource('session', 'SessionController', ['only' => ['store', 'create', 'index']]);
             $router->group(array('middleware' => 'auth'), function ($router) {
                 // $router->get('session/end', array('as' => 'session.end', 'uses' => 'SessionController@getEnd'));
                 $router->get('/', array('as' => 'dash.index', 'uses' => 'DashController@getIndex'));
                 $router->get('me/time', array('as' => 'me.time.index', 'uses' => 'TimeController@index'));
                 $router->post('me/time/store', array('as' => 'me.time.store', 'uses' => 'TimeController@store'));
                 $router->get('me/time/{id}/edit', array('as' => 'me.time.edit', 'uses' => 'TimeController@edit'));
                 $router->put('me/time/{id}', array('as' => 'me.time.update', 'uses' => 'TimeController@update'));
                 $router->get('me/time/{id}/delete', array('as' => 'me.time.delete', 'uses' => 'TimeController@delete'));
                 $router->delete('me/time/{id}', array('as' => 'me.time.destroy', 'uses' => 'TimeController@destroy'));
                 $router->resource('tickets', 'TicketsController', ['except' => ['destroy']]);
                 $router->resource('actions', 'TicketActionsController', ['only' => ['store']]);
                 $router->resource('reports', 'ReportsController', ['only' => ['index', 'show']]);
                 $router->resource('dev', 'DevController', ['only' => ['index']]);
             });
         });
         $router->group(['namespace' => 'Api', 'prefix' => 'api', 'before' => 'auth|csfr'], function ($router) {
             $router->resource('users', 'UsersController', ['except' => ['create', 'store', 'edit', 'update', 'destroy']]);
             $router->resource('tickets', 'TicketsController', ['except' => ['index', 'create', 'store', 'show', 'edit', 'destroy']]);
         });
     });
 }
开发者ID:vik0803,项目名称:nuticket,代码行数:34,代码来源:RouteServiceProvider.php

示例12: map

 public function map(Router $router)
 {
     $router->group(['prefix' => 'dashboard', 'as' => 'dashboard.', 'middleware' => 'auth', 'namespace' => 'Dashboard'], function ($router) {
         # 后台首页
         $router->get('/', ['as' => 'console', 'uses' => 'AdminController@console']);
         #--------------------
         # 控制面板
         #--------------------
         # 个人资料
         $router->get('me', ['as' => 'me', 'uses' => 'AdminMeController@me']);
         $router->post('me', 'AdminMeController@meProfile');
         # 头像上传
         $router->post('avatar', ['as' => 'avatar', 'uses' => 'AdminMeController@avatarUpload']);
         #--------------------
         # 内容管理
         #--------------------
         # 期数
         $router->delete('issue/delete', ['as' => 'issue.delete', 'uses' => 'AdminIssueController@batchDelete']);
         $router->resource('issue', 'AdminIssueController');
         # 文章
         $router->delete('article/delete', ['as' => 'article.delete', 'uses' => 'AdminArticleController@batchDelete']);
         $router->resource('article', 'AdminArticleController');
         # 投稿
         $router->delete('submission/delete', ['as' => 'submission.delete', 'uses' => 'AdminSubmissionController@batchDelete']);
         $router->get('submission', ['as' => 'submission.index', 'uses' => 'AdminSubmissionController@index']);
         $router->get('submission/{id}/edit', ['as' => 'submission.edit', 'uses' => 'AdminSubmissionController@edit']);
         $router->put('submission/{id}', ['as' => 'submission.update', 'uses' => 'AdminSubmissionController@update']);
         $router->delete('submission/{id}', ['as' => 'submission.destroy', 'uses' => 'AdminSubmissionController@destroy']);
         # 分类
         $router->resource('category', 'AdminCategoryController');
         #--------------------
         # 用户管理
         #--------------------
         $router->group(['middleware' => 'deny403:manage_users'], function ($router) {
             # 后台员
             $router->resource('user', 'AdminUserController');
             # 订阅用户
             $router->delete('subscribe/delete', ['as' => 'subscribe.delete', 'uses' => 'AdminSubscribeController@batchDelete']);
             $router->resource('subscribe', 'AdminSubscribeController');
             # 角色
             $router->resource('role', 'AdminRoleController');
             # 权限
             $router->resource('permission', 'AdminPermissionController');
         });
         #--------------------
         # 系统管理
         #--------------------
         $router->group(['middleware' => 'deny403:manage_system'], function ($router) {
             # 系统配置
             $router->get('system_settings', ['as' => 'system.setting', 'uses' => 'AdminSystemSettingController@index']);
             $router->post('system_settings', 'AdminSystemSettingController@update');
             # 系统日志
             $router->get('system_logs', ['as' => 'system.log.index', 'uses' => 'AdminSystemLogController@index']);
             $router->get('system_logs/{id}', ['as' => 'system.log.show', 'uses' => 'AdminSystemLogController@show']);
             # 导出 excel
             $router->get('export/excel', ['as' => 'export.excel', 'uses' => 'AdminSystemLogController@excelExport']);
         });
     });
 }
开发者ID:axex,项目名称:kratos,代码行数:59,代码来源:DashboardRoutes.php

示例13: adminRoutes

 private function adminRoutes(Router $router)
 {
     $router->get('/', 'NewsAdminController@index')->name('index');
     $router->get('/create', 'NewsAdminController@create')->name('create');
     $router->post('/', 'NewsAdminController@store')->name('store');
     $router->get('/{article}', 'NewsAdminController@edit')->name('edit');
     $router->put('/{article}', 'NewsAdminController@update')->name('update');
     $router->delete('/{article}', 'NewsAdminController@destroy')->name('destroy');
 }
开发者ID:jeroennoten,项目名称:laravel-news,代码行数:9,代码来源:Routing.php

示例14: boot

 /**
  * Bootstrap the application services.
  *
  * @return void
  */
 public function boot(Router $router)
 {
     $this->loadTranslationsFrom(public_path() . '/themes/adminlte/support/lang', 'adminlte');
     $this->app['view']->composers(array('App\\Http\\Composers\\NavMenuComposer' => ['*'], 'App\\Http\\Composers\\ThemeComposer' => ['settings.system'], 'App\\Http\\Composers\\TicketsAssignedCountComposer' => ['tickets.index'], 'App\\Http\\Composers\\TicketsClosedCountComposer' => ['tickets.index'], 'App\\Http\\Composers\\TicketsOpenCountComposer' => ['tickets.index'], 'App\\Http\\Composers\\TicketPrioritiesComposer' => ['tickets.create', 'settings.system'], 'App\\Http\\Composers\\DeptComposer' => ['tickets.index', 'tickets.create', 'tickets.show', 'settings.system'], 'App\\Http\\Composers\\OrgComposer' => ['tickets.create', 'tickets.edit', 'tickets.index', 'settings.system'], 'App\\Http\\Composers\\StaffComposer' => ['tickets.index', 'tickets.create', 'tickets.show'], 'App\\Http\\Composers\\SettingsEmailsComposer' => ['settings.emails']));
     $router->group(array('middleware' => 'auth'), function ($router) {
         $router->get('settings/theme/adminlte', ['as' => 'theme.adminlte.edit', 'uses' => 'Themes\\Adminlte\\Support\\Controller@edit']);
         $router->put('settings/theme/adminlte', ['as' => 'theme.adminlte.update', 'uses' => 'Themes\\Adminlte\\Support\\Controller@update']);
     });
 }
开发者ID:hughfletcher,项目名称:nuticket,代码行数:14,代码来源:ServiceProvider.php

示例15: map

 /**
  * Define the routes for the application.
  *
  * @param \Illuminate\Routing\Router $router
  *
  * @return void
  */
 public function map(Router $router)
 {
     $router->group(['namespace' => $this->namespace], function (Router $router) {
         /*
          * Admin routes
          */
         $router->get('admin/blocks', 'AdminController@index')->name('admin::index-blocks');
         $router->get('admin/blocks/create', 'AdminController@create')->name('admin::create-block');
         $router->get('admin/blocks/{block}/edit', 'AdminController@edit')->name('admin::edit-block');
         $router->post('admin/blocks', 'AdminController@store')->name('admin::store-block');
         $router->put('admin/blocks/{block}', 'AdminController@update')->name('admin::update-block');
         /*
          * API routes
          */
         $router->get('api/blocks', 'ApiController@index')->name('api::index-blocks');
         $router->put('api/blocks/{block}', 'ApiController@update')->name('api::update-block');
         $router->delete('api/blocks/{block}', 'ApiController@destroy')->name('api::destroy-block');
     });
 }
开发者ID:webfactorybulgaria,项目名称:Blocks,代码行数:26,代码来源:RouteServiceProvider.php


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