File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed
Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ Run the following command to get the latest version package:
1717```
1818composer require owen-it/laravel-auditing
1919```
20+
21+ ### Laravel
2022Open 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
3132Only 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.
3940php 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 )
You can’t perform that action at this time.
0 commit comments