mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-25 15:34:02 +00:00
30ed77f304
# Conflicts: # resources/assets/vue/components/accounts/forms/RegistrationFormComponent.vue # routes/api.php
32 lines
666 B
PHP
32 lines
666 B
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Affiliate\Services;
|
|
|
|
use App\Classes\General\Eloquent\AbstractListRecord;
|
|
use App\Models\Affiliate;
|
|
use Illuminate\Database\Eloquent\Builder;
|
|
|
|
class ListsAffiliates extends AbstractListRecord
|
|
{
|
|
/** @var Affiliate */
|
|
private $repository;
|
|
|
|
/**
|
|
* ListsAffiliates constructor.
|
|
* @param Affiliate $repository
|
|
*/
|
|
public function __construct(Affiliate $repository)
|
|
{
|
|
$this->repository = $repository;
|
|
}
|
|
|
|
/**
|
|
* @return Builder
|
|
*/
|
|
function getRepository(): Builder
|
|
{
|
|
return $this->repository->newQuery()->with('creator')->orderBy('created_at', 'desc');
|
|
}
|
|
}
|
|
|