Short information about policies
Policies are classes that organize authorization logic around a particular model or resource. For example, if your application is a blog, you may have a Post model and a corresponding PostPolicy class to authorize user actions such as creating or updating posts.
Read more in the official Laravel docs.
- app/Providers/AuthServiceProvider.php
- app/Http/Controllers/API/PlaylistController.php
- app/Http/Controllers/Admin/ArticlesController.php
- app/Models/User.php
- app/Base/Http/Controllers/MemberController.php
- app/Base/Providers/AuthServiceProvider.php
- app/Authorization/Authorization.php
- app/Http/Controllers/Api/V1/PostController.php
- app/Providers/AuthServiceProvider.php
- app/Http/Controllers/CommentController.php
- app/Policies/Projects/ProjectPolicy.php
- app/Http/Controllers/Projects/ProjectsController.php
- app/Providers/AuthServiceProvider.php
- app/Http/Controllers/OfficeController.php
- app/Policies/CampaignPolicy.php
- app/Policies/EntityPolicy.php
- app/Http/Controllers/Api/v1/EntityInventoryApiController.php
- app/Http/Controllers/Web/Transactions/TransactionsController.php
- app/Models/Policies/ContactPolicy.php
- app/Http/Controllers/ContactController.php
- app/Providers/AuthServiceProvider.php
- app/Http/Controllers/Ingredients/IngredientGroupController.php
- app/Providers/AuthServiceProvider.php
- app/Http/Controllers/Admin/UsersController.php
- app/Http/Requests/CalculatePaymentRequest.php
- app/Http/Controllers/Teacher/TeacherController.php
Additional resources on policies:
-
Povilas Korop | www.youtube.com
Published on
-
Keyur Gadher | coding-lesson.com
Published on
-
Policy Usage: Adding more policies
Forum topic
laracasts.com
Published on