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

Commit f47eed4

Browse files
committed
update docs and dependencies
1 parent e567ad5 commit f47eed4

File tree

2 files changed

+59
-54
lines changed

2 files changed

+59
-54
lines changed

README.md

Lines changed: 58 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -19,52 +19,6 @@ an ui to link users to roles and assign permissions to roles.
1919

2020
## Installation
2121

22-
```shell
23-
composer require lloadout/inforce
24-
```
25-
26-
If you are starting from a new installation and need to install Laravel Jetstream, Spatie Permissions or Laravel Livewire datatables , you need to do the additional steps
27-
documented at the end of this documentation.
28-
29-
### Assets
30-
31-
LLoadout inforce uses some default menus and permissions, these can be created via the provided migrations and seeder.
32-
33-
```shell
34-
php artisan vendor:publish --tag=LLoadoutInforce-migrations
35-
php artisan vendor:publish --tag=LLoadoutInforce-seeders
36-
php artisan migrate
37-
php artisan db:seed --class=InforceSeeder
38-
```
39-
40-
You also have to publish the datatables components configuration to set the theme to tailwind
41-
42-
```shell
43-
php artisan vendor:publish --provider="Rappasoft\LaravelLivewireTables\LaravelLivewireTablesServiceProvider" --tag=config
44-
```
45-
Change the `theme` config setting to `tailwind` in the published file.
46-
47-
48-
### Publish optional assets
49-
50-
```shell
51-
php artisan vendor:publish --tag=LLoadoutInforce-views
52-
```
53-
54-
## Navigation
55-
56-
It provides a ui for navigation management and navigation permissions.
57-
58-
Therefore you have to add this tag after the dashboard navigation div in navigation-menu.blade.php
59-
60-
```php
61-
<livewire:navigation/>
62-
```
63-
64-
## Logging in
65-
66-
LLoadout inforce will default create a user with username of `john@doe.com` and the password `password`
67-
6822

6923
## Installing Laravel Jetstream ( if you didn't already install it )
7024

@@ -83,7 +37,12 @@ npm run dev
8337

8438
## Installing Laravel Permissions ( if you didn't already install it )
8539

86-
if you hadn't already installed Laravel Permissions then you should first publish the config file and migrations.
40+
if you hadn't already installed Laravel Permissions , install it first
41+
42+
```shell
43+
composer require spatie/laravel-permission
44+
```
45+
After the installation you should first publish the config file and migrations.
8746

8847
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
8948

@@ -104,10 +63,10 @@ use HasRoles;
10463

10564
## Installing Laravel Livewire datatables
10665

107-
because the datatables don't include a tailwind ui i've created a fork. The fork is in pull request but while it's still open you have to include my
66+
because the datatables don't include a tailwind ui i've created a fork. The fork is in pull request but while it's still open you have to include my
10867
version as a root dependencie in your project.
10968

110-
add this to your composer.json
69+
add this to your composer.json
11170

11271
```shell
11372
"repositories": [
@@ -118,15 +77,63 @@ add this to your composer.json
11877
],
11978
```
12079

121-
add this in your required packages
80+
add this in your required packages
12281

12382
```shell
12483
"rappasoft/laravel-livewire-tables": "dev-tailwind as 0.3.3"
12584
```
12685

127-
publish the config file
86+
publish the config file
12887
```shell
12988
php artisan vendor:publish --provider="Rappasoft\LaravelLivewireTables\LaravelLivewireTablesServiceProvider" --tag=config
13089
```
13190

13291
then change "theme" to "tailwind" in /config/laravel-livewire-tables.php
92+
93+
## Installation of LLoadout inforce
94+
95+
```shell
96+
composer require lloadout/inforce
97+
```
98+
99+
If you are starting from a new installation and need to install Laravel Jetstream, Spatie Permissions or Laravel Livewire datatables , you need to do the additional steps
100+
documented at the end of this documentation.
101+
102+
### Assets
103+
104+
LLoadout inforce uses some default menus and permissions, these can be created via the provided migrations and seeder.
105+
106+
```shell
107+
php artisan vendor:publish --tag=LLoadoutInforce-migrations
108+
php artisan vendor:publish --tag=LLoadoutInforce-seeders
109+
php artisan migrate
110+
php artisan db:seed --class=InforceSeeder
111+
```
112+
113+
You also have to publish the datatables components configuration to set the theme to tailwind
114+
115+
```shell
116+
php artisan vendor:publish --provider="Rappasoft\LaravelLivewireTables\LaravelLivewireTablesServiceProvider" --tag=config
117+
```
118+
Change the `theme` config setting to `tailwind` in the published file.
119+
120+
121+
### Publish optional assets
122+
123+
```shell
124+
php artisan vendor:publish --tag=LLoadoutInforce-views
125+
```
126+
127+
## Navigation
128+
129+
It provides a ui for navigation management and navigation permissions.
130+
131+
Therefore you have to add this tag after the dashboard navigation div in navigation-menu.blade.php
132+
133+
```php
134+
<livewire:navigation/>
135+
```
136+
137+
## Logging in
138+
139+
LLoadout inforce will default create a user with username of `john@doe.com` and the password `password`

composer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
"require": {
1313
"php": "^7.4|^8.0",
1414
"livewire/livewire": "^2.0",
15-
"spatie/laravel-package-tools": "^1.1",
16-
"spatie/laravel-permission": "^4.0",
17-
"laravel/jetstream": "^2.2"
15+
"spatie/laravel-package-tools": "^1.1"
1816
},
1917
"autoload": {
2018
"psr-4": {

0 commit comments

Comments
 (0)