示例#1
0
 public function Photo($user)
 {
     $this_user = Users::where('account', $user)->first();
     $album = Albums::where('user_id', $this_user['id'])->orderBy('created_at', 'desc')->get();
     if ($this_user) {
         return View::make('frontend/profile/photo')->with('user', $this_user)->with('albums', $album);
     } else {
         return 'ko có user ' . $user;
     }
 }