拉拉维尔盾牌 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' )