PHP code example of littlebookboy / laravel-request-recorder

1. Go to this page and download the library: Download littlebookboy/laravel-request-recorder 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/ */

    

littlebookboy / laravel-request-recorder example snippets


php artisan vendor:publish --provider="LittleBookBoy\Request\Recorder\RequestRecorderServiceProvider"

php artisan migrate

php artisan make:controller UserController

public function show()
{
    return collect([
        'name' => 'littlebookboy',
        'saying' => 'Hello Recorder',
    ])->toJson();
}
/path/to/project/config/request-recorder.php