Files
2020-05-11 14:43:49 +08:00

33 lines
606 B
PHP

<?php
namespace App\Classes\Modules\Comments\Services;
use App\Classes\General\Eloquent\AbstractListRecord;
use Illuminate\Database\Eloquent\Builder;
use App\Models\Comment;
class ListsComments extends AbstractListRecord
{
/** @var Comment */
private $repository;
/**
* ListsComments constructor.
* @param Comment $repository
*/
public function __construct(Comment $repository)
{
$this->repository = $repository;
}
/**
* @return Builder
*/
function getRepository(): Builder
{
return $this->repository->newQuery();
}
}