|
1 | | -# TODO |
| 1 | + |
2 | 2 |
|
3 | | -* put the navigation part in code via package |
| 3 | +# Enforce |
4 | 4 |
|
5 | | -## Installation of ui package |
| 5 | +With LLoadout Enforce you will kickstart your Laravel development when using Laravel Jetstream and Spatie permissions. |
6 | 6 |
|
7 | | -### Clone this repo somewhere on your computer |
8 | | - |
9 | | -for example in /Users/your-user/packages |
10 | | - |
11 | | -### Installing package |
12 | | - |
13 | | -add this to composer.json ( change folder with location of cloned repo ) |
14 | | - |
15 | | -```json |
16 | | - |
17 | | - "repositories": [ |
18 | | - { |
19 | | - "type": "path", |
20 | | - "url": "/Users/your-user/packages/laravel-permissions-ui" |
21 | | - } |
22 | | - ], |
23 | | - |
24 | | -``` |
25 | | - |
26 | | -### Require package with |
| 7 | +## Installation |
27 | 8 |
|
28 | 9 | ```shell |
29 | | -composer require deltasolutions-kifed/laravel-permission-ui |
| 10 | +composer require lloadout/enforce |
30 | 11 | ``` |
31 | 12 |
|
32 | | -### Publish installation file |
33 | | - |
34 | | -```shell |
35 | | -php artisan vendor:publish --tag=LLoadoutEnforce-installer |
36 | | -``` |
| 13 | +## Users, roles and permissions |
| 14 | +LLoadout Enforce will add a ui to manage your users, roles, permission and menus. It will also provide you with |
| 15 | +a ui to link users to roles and assign permissions to roles. |
37 | 16 |
|
38 | | -### Run installation file |
| 17 | +## Navigation |
39 | 18 |
|
40 | | -```shell |
41 | | -bash install.sh |
42 | | -``` |
| 19 | +It provides a ui for navigation management and navigation permissions. |
43 | 20 |
|
44 | | -### Add navigation |
45 | 21 |
|
46 | | -add this to 'navigation-menu.blade.php' |
47 | | -```php |
48 | 22 |
|
49 | | -<div class="hidden sm:flex sm:items-center sm:ml-6"> |
50 | | - <div class="ml-3 relative text-sm"> |
51 | | - <x-jet-dropdown align="right" width="60"> |
52 | | - <x-slot name="trigger"> |
53 | | - {{ __('User management') }} |
54 | | - </x-slot> |
55 | | - <x-slot name="content"> |
56 | | - <div class="w-60"> |
57 | | - <x-jet-dropdown-link href="{{ route('users.index') }}"> |
58 | | - {{ __('Manage users') }} |
59 | | - </x-jet-dropdown-link> |
60 | | - <x-jet-dropdown-link href="{{ route('users.roles') }}"> |
61 | | - {{ __('Manage roles') }} |
62 | | - </x-jet-dropdown-link> |
63 | | - <x-jet-dropdown-link href="{{ route('users.permissions') }}"> |
64 | | - {{ __('Manage permissions') }} |
65 | | - </x-jet-dropdown-link> |
66 | | - </div> |
67 | | - </x-slot> |
68 | | - </x-jet-dropdown> |
69 | | - </div> |
70 | | -</div> |
| 23 | +### Publish files |
71 | 24 |
|
| 25 | +```shell |
| 26 | +php artisan vendor:publish --tag=LLoadoutEnforce-views |
| 27 | +php artisan vendor:publish --tag=LLoadoutEnforce-seeders |
| 28 | +php artisan vendor:publish --tag=LLoadoutEnforce-stubs |
72 | 29 | ``` |
73 | 30 |
|
74 | | -### Permissions |
75 | | - |
76 | | -if you manually create extra permissions in database than you need to run following code |
77 | | - |
78 | | -```shell |
79 | | -php artisan permission:cache-reset |
80 | | -``` |
0 commit comments