/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id) { if ($this->auth->check()) { $status = "logined"; } else { $status = "unlogin"; } $albums = Album::with('Photos')->find($id); return view('layouts.photos', ['loginStauts' => $status], ['album' => $albums]); }
/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id) { $album = Album::with('Photos')->find($id); return view('layouts.photos', ['album' => $album], ['loginStauts' => $this->login]); }