private function _news() { $this->articles = Article::with('translation')->has('translation')->paginate(10); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $articles = Article::with('translation')->orderBy('published_at', 'desc')->get(); return view('backend.article.index', compact('articles')); }