Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Commit 647bbf4

Browse files
committed
update docs
Signed-off-by: Dieter Coopman <dieter@deltasolutions.be>
1 parent 19d86de commit 647bbf4

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,40 @@ With LLoadout Enforce you will kickstart your Laravel development when using Lar
1010
composer require lloadout/enforce
1111
```
1212

13+
## Installing Laravel Jetstream ( if you didn't already install it )
14+
15+
```php
16+
php artisan jetstream:install livewire
17+
```
18+
19+
After this you have to install and build the assets
20+
21+
```shell
22+
npm install
23+
npm run dev
24+
```
25+
26+
## Installing Laravel Permissions ( if you didn't already install it )
27+
28+
if you hadn't already installed Laravel Permissions then you should first publish the config file and migrations.
29+
30+
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
31+
32+
33+
First, add the Spatie\Permission\Traits\HasRoles trait to your User model(s):
34+
35+
```php
36+
use Illuminate\Foundation\Auth\User as Authenticatable;
37+
use Spatie\Permission\Traits\HasRoles;
38+
39+
class User extends Authenticatable
40+
{
41+
use HasRoles;
42+
43+
// ...
44+
}
45+
```
46+
1347
## Users, roles and permissions
1448
LLoadout Enforce will add a ui to manage your users, roles, permission and menus. It will also provide you with
1549
a ui to link users to roles and assign permissions to roles.
@@ -18,13 +52,20 @@ a ui to link users to roles and assign permissions to roles.
1852

1953
It provides a ui for navigation management and navigation permissions.
2054

55+
Therefore you have to add this tag after the dashboard navigation div in navigation.blad.php
56+
57+
```php
58+
<livewire:navigation/>
59+
```
60+
2161
### Assets
2262

2363
LLoadout enforce uses some default menus and permissions, these can be created via the provided migrations and seeder.
2464

2565
```shell
2666
php artisan vendor:publish --tag=LLoadoutEnforce-migrations
2767
php artisan vendor:publish --tag=LLoadoutEnforce-seeders
68+
php artisan migrate
2869
php artisan db:seed --class=EnforceSeeder
2970
```
3071

@@ -34,3 +75,6 @@ php artisan db:seed --class=EnforceSeeder
3475
php artisan vendor:publish --tag=LLoadoutEnforce-views
3576
```
3677

78+
## Logging in
79+
80+
LLoadout enforce will default create a user with username of `john@doe.com` and the password `password`

0 commit comments

Comments
 (0)