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

Commit 7a7da1d

Browse files
committed
changed laravel directive to notation.
1 parent 7726067 commit 7a7da1d

File tree

1 file changed

+21
-23
lines changed

1 file changed

+21
-23
lines changed

README.md

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# LLoadout
99

10-
LLoadout is your loadout for Laravel. It helps you with tips , code examples and packages to make you a better Laravel developer.
10+
LLoadout is your loadout for Laravel. It helps you with tips , code examples and packages to make you a better Laravel developer.
1111

1212
# LLoadout inforce
1313

@@ -19,20 +19,20 @@ With LLoadout Inforce you will kickstart your Laravel development when using Lar
1919

2020
## Users, roles and permissions
2121

22-
LLoadout inforce will add a ui for managing users, roles, permission and menus. It will also provide you with
22+
LLoadout inforce will add a ui for managing users, roles, permission and menus. It will also provide you with
2323
an ui to link users to roles and assign permissions to roles.
2424

25-
### manage roles
25+
### manage roles
2626

27-
you can manage roles and assign permissions to the roles
27+
you can manage roles and assign permissions to the roles
2828

2929
<p align="center">
3030
<img src="https://github.com/LLoadout/assets/blob/master/inforce/roles.png" title="LLoadout inforce">
3131
</p>
3232

33-
### manage users
33+
### manage users
3434

35-
you can manage users and assign them a role. You can also assign permissions on user level.
35+
you can manage users and assign them a role. You can also assign permissions on user level.
3636

3737
<p align="center">
3838
<img src="https://github.com/LLoadout/assets/blob/master/inforce/users.png" title="LLoadout inforce">
@@ -46,12 +46,9 @@ you can manage menus
4646
<img src="https://github.com/LLoadout/assets/blob/master/inforce/menus.png" title="LLoadout inforce">
4747
</p>
4848

49-
50-
5149
## Installation
5250

53-
54-
## Installing Laravel Jetstream, the Livewire version
51+
## Installing Laravel Jetstream, the Livewire version
5552

5653
Laravel Jetstream is a requirement for this package, if you haven't allready install it i refer
5754
to the docs of Jetstream to install it.
@@ -66,13 +63,13 @@ https://spatie.be/docs/laravel-permission/v4/installation-laravel
6663

6764
Attention : don't forget to read the prerequisites : https://spatie.be/docs/laravel-permission/v4/prerequisites
6865

69-
## Installation of LLoadout inforce
66+
## Installation of LLoadout inforce
7067

7168
```shell
7269
composer require lloadout/inforce
7370
```
7471

75-
### Assets
72+
### Assets
7673

7774
LLoadout inforce uses some default menus and permissions, these can be created via the provided migrations and seeder.
7875

@@ -96,23 +93,23 @@ It provides a ui for navigation management and navigation permissions.
9693

9794
Therefore you have to add this tag after the Navigation Links section navigation-menu.blade.php. Default on line 19
9895

99-
```php
96+
```php
10097
<livewire:navigation/>
10198

10299
or
103100

104101
@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/>
107104
@endif
108105
```
109106

110107
And add mobile menu default on line 214
111108

112109
```php
113110
@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/>
116113
@endif
117114
```
118115

@@ -122,16 +119,17 @@ LLoadout inforce will default create a user with username of `john@doe.com` and
122119

123120
## Extending the package
124121

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.
126123
Herefore you have to create your own route to your own created component.
127124

128-
This is the route
125+
This is the route
129126

130127
```php
131-
Route::get('/user/detail/{user?}', \App\Http\Livewire\MyUser::class)->whereNumber('id')->name('users.edit');
128+
Route::get('/user/detail/{user?}', \App\Http\Livewire\MyUser::class)->whereNumber('id')->name('users.edit');
132129
```
133130

134131
This can be your component
132+
135133
```php
136134
<?php
137135

@@ -160,8 +158,8 @@ class MyUser extends \LLoadoutInforce\Http\Livewire\User
160158

161159
```
162160

163-
# Documentation
161+
# Documentation
164162

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.
166164

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

Comments
 (0)