PHP code example of whiteki / simple-api-response

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

    

whiteki / simple-api-response example snippets


$app->singleton(
    Illuminate\Contracts\Debug\ExceptionHandler::class,
    \Whiteki\SimpleApiResponse\Exceptions\Handler::class
);

use \Whiteki\SimpleApiResponse\ApiResponse;

'sqllog' => [
    'driver' => 'daily',
    'path' => storage_path('logs/sql.log'),
    'level' => 'debug',
    'days' => 14,
];