File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,6 +55,24 @@ Local docs index: `docs/index.md`
5555
5656---
5757
58+ ## Artisan Commands
59+
60+ The package ships with helper commands for publishing ABAC assets and scaffolding policy payloads.
61+
62+ ``` bash
63+ php artisan abac:publish
64+ php artisan abac:publish-config
65+ php artisan abac:publish-env
66+ php artisan abac:scaffold --from-routes
67+ ```
68+
69+ - ` abac:publish ` publishes ABAC config and environment variables in one step.
70+ - ` abac:publish-config ` publishes the ` config/abac.php ` file (supports ` --force ` ).
71+ - ` abac:publish-env ` writes missing ABAC environment variables to a target env-style file.
72+ - ` abac:scaffold --from-routes ` generates policy stubs from ` abac.middleware.resource_patterns ` .
73+
74+ ---
75+
5876## License
5977
6078MIT License — see [ LICENSE.md] ( LICENSE.md )
Original file line number Diff line number Diff line change 11{
22 "name" : " zennit/abac" ,
33 "description" : " Attribute-Based Access Control (ABAC) for Laravel" ,
4- "version" : " 1.0.1 " ,
4+ "version" : " 1.0.2 " ,
55 "type" : " library" ,
66 "license" : " MIT" ,
77 "keywords" : [
You can’t perform that action at this time.
0 commit comments