public function show(Article $article) { if (Request::wantsJson()) { return $article; } return view('articles.show', compact('article')); }