PHP code example of serdartaylan / apilogger
1. Go to this page and download the library: Download serdartaylan/apilogger library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
serdartaylan / apilogger example snippets
//in route.php or web.php
Route::middleware('apilogger')->post('/test',function(){
return response()->json("test");
});
bash
php artisan vendor:publish --tag=config --provider="AWT\Providers\ApiLogServiceProvider"
bash
php artisan migrate
bash
php artisan apilog:clear