Example #1
0
 /**
  * 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]);
 }
Example #2
0
 /**
  * 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]);
 }