public function getArticlesPaginated($per_page, $active = 1, $order_by = 'id', $sort = 'asc') { $order = Order::paginate($per_page); if (!is_null($order)) { return $order; } throw new GeneralException(trans('exceptions.backend.article.not_found')); }