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


PHP Registrar::auth方法代码示例

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


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

示例1: map

 public function map(Registrar $router)
 {
     $router->group(['domain' => 'www.tanteng.me', 'middleware' => 'web'], function ($router) {
         $router->auth();
         $router->get('/', ['as' => 'home', 'uses' => 'IndexController@index']);
         $router->get('/blog', ['as' => 'index.blog', 'uses' => 'BlogController@index']);
         $router->get('/resume', ['as' => 'index.resume', 'uses' => 'IndexController@resume']);
         $router->get('/page/{slug}', ['as' => 'index.page', 'uses' => 'PageController@share']);
         $router->get('/post', ['name' => 'post.show', 'uses' => 'ArticleController@show']);
         $router->get('/contact', ['as' => 'index.contact', 'uses' => 'IndexController@contact']);
         $router->post('/contact/comment', ['uses' => 'IndexController@postComment']);
         $router->get('/travel', ['as' => 'index.travel', 'uses' => 'TravelController@index']);
         $router->get('/travel/latest', ['as' => 'travel.latest', 'uses' => 'TravelController@latest']);
         $router->get('/travel/{destination}/list', ['as' => 'travel.destination', 'uses' => 'TravelController@travelList']);
         $router->get('/travel/{slug}', ['uses' => 'TravelController@travelDetail']);
         $router->get('/commits', ['as' => 'git.commits', 'uses' => 'IndexController@commitsHistory']);
         $router->post('/gitHistory', ['as' => 'git.history', 'uses' => 'IndexController@gitCommitHistory']);
         $router->get('/sitemap.xml', ['as' => 'index.sitemap', 'uses' => 'IndexController@sitemap']);
         $router->get('/download', ['uses' => 'IndexController@download']);
         $router->get('/donate', ['as' => 'donate', 'uses' => 'IndexController@donate']);
     });
 }
开发者ID:tanteng,项目名称:tanteng.me,代码行数:22,代码来源:HomeRoutes.php


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