PHP code example of malvik-lab / laravel-accept-only-json-response
1. Go to this page and download the library: Download malvik-lab/laravel-accept-only-json-response 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/ */
malvik-lab / laravel-accept-only-json-response example snippets
Route::middleware(['malviklab-laravel-accept-only-json-response'])->group(function () {
// your routes here
});