public function getJoin() { $order = Order::leftJoin('article_types', 'type_id', '=', 'article_types.id')->select('articles.*', 'article_types.name'); if (!is_null($order)) { return $order; } throw new GeneralException(trans('exceptions.backend.article.not_found')); }