PHP code example of shoesten-tag / log-http
1. Go to this page and download the library: Download shoesten-tag/log-http 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/ */
shoesten-tag / log-http example snippets
composer
//Example
Route::resource('/dashboard', DashboardController::class)->middleware('log-http');
#[Intercept(response: true)]
public function index(){
return new Collection(Employee::all());
}
#[Intercept(request: true)]
public function index(){
return new Collection(Employee::all());
}