Skip to content

Commit 2377b27

Browse files
committed
docs: add artisan command reference and bump version to 1.0.2
1 parent b3e46b5 commit 2377b27

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff 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

6078
MIT License — see [LICENSE.md](LICENSE.md)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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": [

0 commit comments

Comments
 (0)