Skip to content

Commit

Permalink
added tests link
Browse files Browse the repository at this point in the history
  • Loading branch information
riteshjha authored Jun 13, 2020
1 parent 5c292de commit 4fc0d70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ Note: If you use admin routes prefix other than 'admin' then change ```adminRout
Package use laravel gate, so you can use ``` can('project.create') ``` in view and ``` $this->authorize('project.create') ``` in controller for route ability. And ``` can('projects::cost') ``` for field ability in view. Here projects is a table name.
For Details check <a href="https://github.com/riteshjha/laravel-permission/tree/master/tests">Tests</a>
#### Create/Update
When creating or updating record in model then filter data using ``` filterFieldAccess ``` method like :
Expand Down

0 comments on commit 4fc0d70

Please sign in to comment.