PHP code example of bwt-team / laravel-api

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

    

bwt-team / laravel-api example snippets


BwtTeam\LaravelAPI\Providers\ApiServiceProvider::class

response()->api($data)

new \BwtTeam\LaravelAPI\Response\ApiResponse($data)

class Handler extends \BwtTeam\LaravelAPI\Exceptions\Handler

$app->register(\BwtTeam\LaravelAPI\Providers\ApiServiceProvider::class);

$app->configure('api');

class Handler extends \BwtTeam\LaravelAPI\Exceptions\LumenHandler
bash
php artisan vendor:publish --provider="BwtTeam\LaravelAPI\Providers\ApiServiceProvider" --tag=config