PHP code example of gogilo / laravel-api-response-helpers
1. Go to this page and download the library: Download gogilo/laravel-api-response-helpers 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/ */
gogilo / laravel-api-response-helpers example snippets
$this->validationError($validator)
$this->storeSuccess($message, $data = [])
$this->updateSuccess($message, $data = [])
$this->deleteSuccess()
$this->importSuccess($message, $data = [])