PHP code example of alexpensato / laravel-api-maker

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

    

alexpensato / laravel-api-maker example snippets




'providers' => [
    
    ...
    
    /*
     * Package Service Providers...
     */
    
    Pensato\Api\ServiceProvider::class,
    
    /*
     * Application Service Providers...
     */
    
    App\Providers\ApiServiceProvider::class,
],



Route::group(['prefix' => 'v1'], function () {
    //
});
 artisan make:api User
 artisan make:model -mf Models/<ModelName>