private function _news() { $this->articles = Article::with('translation')->has('translation')->paginate(10); }
/** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param int $id * * @return \Illuminate\Http\Response */ public function update(Request $request, $id) { $article = Article::findOrFail($id); $article->update($request->only('slug', 'published_at')); return back(); }