You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 26, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,12 +53,35 @@ Create [Google Service Account Credentials](https://console.developers.google.co
53
53
54
54
## Usage
55
55
56
+
### User Accounts
57
+
58
+
By default, there's no users created. But you can run `php artisan db:seed DevelopmentSeeder` to run create 3 main users - Developer, Administrator and User.
By default, all newly registered user will be assign role as `user`.
67
+
68
+
### Access Control
69
+
70
+
Access control for the application can be configure from `config/acl.php`. It consist of `roles`, `permissions` and `actions`. Default seeder for ACL is in `database/seeds/RolesAndPermissionsSeeder.php`. You may overwrite this as you please.
71
+
72
+
Seeded roles and permissions based on `database/seeds/RolesAndPermissionsSeeder.php` will have all guards specify in `config/auth.php`.
73
+
56
74
### Commands
57
75
58
76
There's some commands area ready built-in. Others, may refer to respective packages.
59
77
60
78
-`reload:db` - Run `migrate:fresh --seed` with `profile:seed`. You may extend the usage.
61
79
-`reload:cache` - Recache everything
80
+
-`reload:all` - Run above two commands. Passing `-d` will seed `DevelopementSeeder` - useful for development setup.
81
+
82
+
### API
83
+
84
+
This boilerplate make use of Laravel Passport. Managing passport only allowed in for role developer. You can overwrite this behaviour in `routes/web.php`.
62
85
63
86
### Helpers
64
87
@@ -192,6 +215,10 @@ Simply record audit trail on given `$model`, with proper `$message`. You can opt
192
215
]
193
216
```
194
217
218
+
**user()**
219
+
220
+
The `user()` helper simply return the current logged in user object. The helper will take care your guard.
221
+
195
222
## Test
196
223
197
224
To run the test, type `vendor/bin/phpunit` in your terminal.
0 commit comments