Skip to content

Commit 0cc9fab

Browse files
Starting lumen support framework
1 parent 938f2ab commit 0cc9fab

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Run the following command to get the latest version package:
1717
```
1818
composer require owen-it/laravel-auditing
1919
```
20+
21+
### Laravel
2022
Open the file ```config/app.php``` and then add the service provider, this step is required.
2123

2224
```php
@@ -25,7 +27,6 @@ Open the file ```config/app.php``` and then add the service provider, this step
2527
OwenIt\Auditing\AuditingServiceProvider::class,
2628
],
2729
```
28-
2930
> Note: This provider is important for the publication of configuration files.
3031
3132
Only after complete the step before, use the following command to publish configuration settings:
@@ -39,6 +40,26 @@ Finally, execute the migration to create the ```logs``` table in your database.
3940
php artisan migrate
4041
```
4142

43+
### Lumen (From version 2.3.6)
44+
Open the file ```bootstrap/app.php``` and then add the service provider, this step is required.
45+
46+
```php
47+
$app->register(OwenIt\Auditing\AuditingServiceProvider::class);
48+
```
49+
You should uncomment the $app->withFacades() and $app->withEloquent() call in your `bootstrap/app.php` file.
50+
```php
51+
// ...
52+
$app->withFacades();
53+
54+
$app->withEloquent();
55+
// ...
56+
```
57+
58+
Then execute the migration to create the ```logs``` table in your database. This table is used to save audit the logs.
59+
```
60+
php artisan migrate
61+
```
62+
4263

4364
## Docs
4465
* [Implementation](#implementation)

0 commit comments

Comments
 (0)