PHP code example of dminustin / laravel-api-factory

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

    

dminustin / laravel-api-factory example snippets


    //just example
    protected $except = [
        '/api/*'
    ];

php artisan api:factory

php artisan api:create
bash
php artisan vendor:publish --tag=api-factory