PHP code example of lucasandrade / laravel-apiresponse

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

    

lucasandrade / laravel-apiresponse example snippets


php artisan vendor:publish

cp ./vendor/lucasandrade/laravel-apiresponse/src/config/apiresponse.php ./config

$app->register(Lucandrade\ApiResponse\Lumen\ApiResponeServiceProvider::class);