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,23 +93,23 @@ 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/>
101
98
102
99
or
103
100
104
101
@if(Auth::user()->hasRole('superuser')) // or your optional roles
105
-
@livewire('user-management-menus')
106
-
@livewire('developer-menus')
102
+
<livewire:user-management-menus/>
103
+
<livewire:developer-menus/>
107
104
@endif
108
105
```
109
106
110
107
And add mobile menu default on line 214
111
108
112
109
```php
113
110
@if(Auth::user()->hasRole('superuser')) // or your optional roles
114
-
@livewire('user-management-menus-mobile')
115
-
@livewire('developer-menus-mobile')
111
+
<livewire:user-management-menus-mobile/>
112
+
<livewire:developer-menus-mobile/>
116
113
@endif
117
114
```
118
115
@@ -122,16 +119,17 @@ LLoadout inforce will default create a user with username of `john@doe.com` and
122
119
123
120
## Extending the package
124
121
125
-
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.
126
123
Herefore you have to create your own route to your own created component.
@@ -160,8 +158,8 @@ class MyUser extends \LLoadoutInforce\Http\Livewire\User
160
158
161
159
```
162
160
163
-
# Documentation
161
+
# Documentation
164
162
165
-
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.
166
164
167
-
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