1. Go to this page and download the library: Download imdhemy/repovel 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/ */
imdhemy / repovel example snippets
public function store(StoreBlogPostRequest $request)
{
return new StoreBlogPost($request);
}
$service = new StoreBlogPost;
/**
* Execute service
*
* @return mixed
*/
public function handle()
{
// do some stuff
}
namespace App\Http\Services;
use Imdhemy\Repovel\Contracts\AbstractService as Service;
use App\Repositories\DummyRepository;
class DummyClass extends Service
{
/**
* Execute service
*
* @return mixed
*/
public function handle()
{
$repository = new DummyRepository();
$dummies = $repository->all();
return $dummies;
}
}