简体   繁体   中英

Configuring Authorization Policies in Laravel 5.2

Laravel Docs ( https://laravel.com/docs/5.2/authorization ) say that we have to modify AuthServiceProvider to configure policies. However this file resides in vendor folder ( app\\vendor\\laravel\\framework\\src\\Illuminate\\Auth ). We are not supposed to do any changes in vendor folder so how should I modify AuthServiceProvider ?

您应该更改app/Providers/AuthServiceProvider.php ,并且文档意味着这个文件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM