本文整理汇总了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']);
});
}