This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
You can install the package via composer:
composer require laraflow/backpack-api-log
You can run complete installation with:
php artisan backpack-api-log:install
php artisan migrate
Optionally, Install command will publish config and migration. For others, you can publish the config & migration file with:
php artisan vendor:publish --tag="api-log-config"
php artisan vendor:publish --tag="api-log-migration"
This is the contents of the published config file:
return [
'table' => 'api_logs',
'model' => \Laraflow\BackpackApiLog\Models\BackpackApiLog::class,
'route' => 'api-log',
'enabled' => env('BACKPACK_API_LOG', false),
'logs' => [
//which methods should be logged
'method' => [
'GET' => 'GET',
'POST' => 'POST',
'PUT' => 'PUT',
'PATCH' => 'PATCH',
'DELETE' => 'DELETE',
'OPTION' => 'OPTION',
],
//which api endpoints should be logged
'host' => [
//
],
//which api http status code should be logged
'code' => [
'200' => '200',
'400' => '400',
'500' => '500',
'404' => '404',
'422' => '422',
'419' => '419',
],
],
];
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.