Repository
Repository in Pandawa is like an controller for models. This controls from saving and deleting data, fetching data, building a query and executing it, etc.
Generating a new repository
You could run php artisan pandawa:make:repo to generate a base repository.
tip
Read more about CLI.
Or, use the namespace at Pandawa\Component\Ddd\Repository\Repository.
Template 📋
Replace the things encapsulated with <> including itself as well.
<?php
declare(strict_types=1);
namespace <Namespace>\<Folder>\Repository;
use Pandawa\Component\Ddd\Collection;
use Pandawa\Component\Ddd\Repository\Repository;
class <What>Repository extends Repository {
//->
}