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

render() public method

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