/** * Show the form for creating a new resource. * * @return Response */ public function apiFoto($album_id = NULL) { // $data = Foto::with('galeri')->where('id_album', '=', $album_id)->OrderBy('id_foto', 'desc')->get(); return response()->json($data); }