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 Mar 12, 2024. It is now read-only.
Attention : don't forget to read the prerequisites : https://spatie.be/docs/laravel-permission/v4/prerequisites
68
65
69
-
## Installation of LLoadout inforce
66
+
## Installation of LLoadout inforce
70
67
71
68
```shell
72
69
composer require lloadout/inforce
73
70
```
74
71
75
-
### Assets
72
+
### Assets
76
73
77
74
LLoadout inforce uses some default menus and permissions, these can be created via the provided migrations and seeder.
78
75
@@ -96,8 +93,24 @@ It provides a ui for navigation management and navigation permissions.
96
93
97
94
Therefore you have to add this tag after the Navigation Links section navigation-menu.blade.php. Default on line 19
98
95
99
-
```php
96
+
```php
100
97
<livewire:navigation/>
98
+
99
+
or
100
+
101
+
@if(Auth::user()->hasRole('superuser')) // or your optional roles
102
+
<livewire:user-management-menus/>
103
+
<livewire:developer-menus/>
104
+
@endif
105
+
```
106
+
107
+
And add mobile menu default on line 214
108
+
109
+
```php
110
+
@if(Auth::user()->hasRole('superuser')) // or your optional roles
111
+
<livewire:user-management-menus-mobile/>
112
+
<livewire:developer-menus-mobile/>
113
+
@endif
101
114
```
102
115
103
116
## Logging in
@@ -106,16 +119,17 @@ LLoadout inforce will default create a user with username of `[email protected]` and
106
119
107
120
## Extending the package
108
121
109
-
Assume you want to add fields to the user view and want to save the field to the database. Than you can use the published view and extend the LLoadout user component.
122
+
Assume you want to add fields to the user view and want to save the field to the database. Than you can use the published view and extend the LLoadout user component.
110
123
Herefore you have to create your own route to your own created component.
@@ -144,8 +158,8 @@ class MyUser extends \LLoadoutInforce\Http\Livewire\User
144
158
145
159
```
146
160
147
-
# Documentation
161
+
# Documentation
148
162
149
-
Via the permissions menu you can create your permissions, they are stored in the database. Via the user or role menu it is possible to assign a permission to a role or a user.
163
+
Via the permissions menu you can create your permissions, they are stored in the database. Via the user or role menu it is possible to assign a permission to a role or a user.
150
164
151
-
It is also possible to create menu's and corresponding permissions for the menu's. Giving users or roles access to the menu's via the roles and users management.
165
+
It is also possible to create menu's and corresponding permissions for the menu's. Giving users or roles access to the menu's via the roles and users management.
0 commit comments