PHP code example of asifmuztaba1 / laravel-seer
1. Go to this page and download the library: Download asifmuztaba1/laravel-seer 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/ */
asifmuztaba1 / laravel-seer example snippets
'providers' => [
Asifmuztaba1\LaravelSeer\ApiLoggerServiceProvider::class,
],
php
use Illuminate\Support\Facades\Route;
use Asifmuztaba1\LaravelSeer\Middleware\ApiLoggerMiddleware;
Route::middleware(ApiLoggerMiddleware::class)->group(function () {
// Define routes here that you want to be monitored
});
bash
php artisan vendor:publish --tag=laravelseer-config