PHP code example of itmm / easy-repository
1. Go to this page and download the library: Download itmm/easy-repository 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/ */
itmm / easy-repository example snippets
$this->app->extend(Interface::class, function ($service, $app) {
return new NewImplement($service);
});
// getter (on service called)
$serviceName->getData()
$serviceName->getCode()
$serviceName->getMessage()
$serviceName->getError()
// setter (in service)
$this->setCode()
$this->setData()
$this->setError()
$this->setMessage()
bash
php artisan vendor:publish --provider="Itmm\EasyRepository\EasyRepositoryServiceProvider" --tag="itmm-repository-config"