Пример #1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     $faskes = Faskes::findOrFail($id);
     $d = Dokter::lists('nama', 'dokter_id');
     $dokter = $faskes->dokter->toArray();
     return $dokter;
 }
Пример #2
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     $faskes = Faskes::findOrFail($id);
     return response()->json($faskes);
 }
 /**
  * Show the form for creating a new resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function create($id)
 {
     //
     $f = Faskes::findOrFail($id);
     return view('faskes.dokter.create', compact('f', 'd'));
 }