PHP code example of clean-bandits / single-action-resource-controllers-for-laravel-dingo-api
1. Go to this page and download the library: Download clean-bandits/single-action-resource-controllers-for-laravel-dingo-api 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/ */
clean-bandits / single-action-resource-controllers-for-laravel-dingo-api example snippets
public function register(): void
{
$this->app->extend('api.router', function (\Dingo\Api\Routing\Router $router) {
return new \CleanBandits\SingleActionResourceControllersForLaravelDingoApi\Router($router);
});
parent::register();
}