App\Repositories\Backend\History\EloquentHistoryRepository::renderType PHP Method

renderType() public method

public renderType ( $type, null $limit = null, boolean $paginate = true, integer $pagination = 10 ) : string | Symfony\Component\Translation\TranslatorInterface
$type
$limit null
$paginate boolean
$pagination integer
return string | Symfony\Component\Translation\TranslatorInterface
    public function renderType($type, $limit = null, $paginate = true, $pagination = 10)
    {
        $history = History::with('user');
        $history = $this->checkType($history, $type);
        $history = $this->buildPagination($history, $limit, $paginate, $pagination);
        if (!$history->count()) {
            return trans("history.backend.none_for_type");
        }
        return $this->buildList($history, $paginate);
    }