laravel shield:用于Laravel的HTTP基本身份验证中间件 源码
拉拉维尔盾牌 Laravel的中间件。 // Use on your routes. Route :: get ( '/' , [ 'middleware' => 'shield' ], function () { // Your protected page. }); // Use it within your controller constructor. $ this -> middleware ( 'shield' ); // Use specific user credentials. $ this -> middleware ( 'shield:hasselhoff' )
用户评论