PHP code example of wboyz / laravel-api-responses
1. Go to this page and download the library: Download wboyz/laravel-api-responses 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/ */
wboyz / laravel-api-responses example snippets
WBoyz\LaravelApiResponses\WResponseServiceProvider::class,
'WResp' => WBoyz\LaravelApiResponses\Facades\WResponse::class,
public function index() {
return WResp::respondNotFound('Not Found!');
}
public function index() {
return wresponse()->respondNotFound('Not Found!');
}