1. Go to this page and download the library: Download mivu/rscapihandler-laravel 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/ */
mivu / rscapihandler-laravel example snippets
ValidationHandler::check([
'page' => ';
public function limit(int $limit, $filter)
{
$res = $this->repository->limit($limit, $filter);
return ResponseHandlers::tryCatch($res, 'miftahs', true);
}
public function find($id)
{
try {
return $this->repository->find($id);
} catch (\Exception $e) {
ApiHandlers::exception($e);
}
}
sh
php artisan make:repository Miftah
sh
php artisan make:handler Miftah
sh
php artisan make:enum Miftah
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.