#3 - Policy Automatic Discovery | What's New in Laravel 5.8?

preview_player
Показать описание
In previous versions of Laravel, each time a new policy class is created, you'd need to add them in AuthServiceProvider manually with the appropriate model.

Now in Laravel 5.8, as long as policies and models are in the conventional locations, you will not need to register them in policies array in the AuthServiceProvider class.

Here are a few commits that made this feature possible:

𝐏𝐥𝐚𝐲𝐋𝐢𝐬𝐭: What's New in Laravel 5.8?
Рекомендации по теме