PHP code example of ducascao / api-maker

1. Go to this page and download the library: Download ducascao/api-maker 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/ */

    

ducascao / api-maker example snippets


ApiMaker::routes();

Route::group(['middleware' => 'auth:api'], function () {
    /** API Maker: Routes */
});

/*
* Application Service Providers...
*/
App\Providers\DomainServiceProvider::class,
App\Providers\RepositoryServiceProvider::class,
bash
$ php artisan api-maker:stub-publish

POST /build/project