Skip to content

Commit 1d5a964

Browse files
authored
Merge pull request #67 from 15g-lucas/docs/update-policies-configuration
Update authorizations configuration
2 parents 2b93e56 + cbf00a4 commit 1d5a964

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

content/4.digging-deeper/4.authorizations.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ Laravel Rest Api doesn't provide authentication, you can define it on your proje
88

99
## Policies
1010

11-
To restrict access to viewing, creating, updating, or deleting resources, Laravel Rest Api leverages Laravel's [authorization policies](https://laravel.com/docs/authorization#creating-policies).
12-
Basically, if your model is associated with a policy in your `AppServiceProvider`, Laravel Rest API will automatically use it, requiring no further configuration.
11+
To restrict access to viewing, creating, updating, or deleting resources, Laravel Rest Api relies on Laravel's [authorization policies](https://laravel.com/docs/authorization#creating-policies).
12+
By default, Laravel automatically associates the appropriate authorization policies with your models.
13+
You can also manually associate a policy in your `AppServiceProvider`. In either case, Laravel REST API will use it automatically, without requiring any additional configuration.
1314

1415
This concerns the following methods:
1516
- viewAny

0 commit comments

Comments
 (0)