crixuamg / laravel-route-logger
Automatically logs all requests with the request data
Installs: 3 139
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 2
Requires
- php: >=7.0
- laravel/framework: 5.*||6.*||7.*
This package is auto-updated.
Last update: 2024-11-16 23:00:07 UTC
README
Installation
First, run composer require crixuamg/laravel-route-logger
in your terminal.
Then, run php vendor:publish --tag=CrixuAMG\RouteLogger\RouteLoggerServiceProvider
to publish the config and migration.
Then run php artisan migrate
and the table will be created in your database.
The last step is to register the middleware in app/Htpp/Middleware/Kernel.php
: CrixuAMG\RouteLogger\Http\Middleware\RouteLoggerMiddleware::class,
Usage
After installing the package using the steps above all wil be ready to use.
Try out a couple of routes and view the data in your database viewer of choice!