PHP code example of hesamrad / laravel-api-debugger
1. Go to this page and download the library: Download hesamrad/laravel-api-debugger 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/ */
hesamrad / laravel-api-debugger example snippets
composer
Route::middleware('debugger')->group(function () { // <- I added the middleware to a group of routes
Route::prefix('users')->group(function () {
Route::get('/', [UserController::class, 'index']);
Route::post('/', [UserController::class, 'store']);
Route::prefix('{user}')->group(function () {
Route::get('/', [UserController::class, 'show']);
Route::patch('/', [UserController::class, 'update']);
Route::delete('/', [UserController::class, 'destroy']);
});
});
});
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.