PHP code example of danielebuso / idempotency
1. Go to this page and download the library: Download danielebuso/idempotency 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/ */
danielebuso / idempotency example snippets
// Adding idempotency layer to a route
Route::post('hello-world', function() {
// stuff
})->middleware('idempotent');
php artisan vendor:publish --provider="idempotency\ServiceProvider"