PHP code example of thinktomorrow / repo
1. Go to this page and download the library: Download thinktomorrow/repo 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/ */
thinktomorrow / repo example snippets
php
namespace App\Domain;
use Thinktomorrow\Repo\BaseRepository;
use Thinktomorrow\Repo\Filterable;
use Thinktomorrow\Repo\Sortable;
class ChildRepository extends BaseRepository{
use Filterable, Sortable;
public function __construct(ModelStub $model)
{
$this->setModel($model);
}
}