@@ -10,6 +10,40 @@ With LLoadout Enforce you will kickstart your Laravel development when using Lar
1010composer 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
1448LLoadout Enforce will add a ui to manage your users, roles, permission and menus. It will also provide you with
1549a 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
1953It 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
2363LLoadout enforce uses some default menus and permissions, these can be created via the provided migrations and seeder.
2464
2565``` shell
2666php artisan vendor:publish --tag=LLoadoutEnforce-migrations
2767php artisan vendor:publish --tag=LLoadoutEnforce-seeders
68+ php artisan migrate
2869php artisan db:seed --class=EnforceSeeder
2970```
3071
@@ -34,3 +75,6 @@ php artisan db:seed --class=EnforceSeeder
3475php 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