File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ class HidanganController extends Controller
1616 public function index ()
1717 {
1818 return response ()->json ([
19- 'result ' => Hidangan::all ()
19+ 'hidangan ' => Hidangan::all ()
2020 ]);
2121 }
2222
2323 public function menuLimit (){
2424 return response ()->json ([
25- 'result ' => Hidangan::limit (5 )->get ()
25+ 'hidangan ' => Hidangan::limit (5 )->get ()
2626 ]);
2727 }
2828
@@ -56,17 +56,17 @@ public function store(Request $request)
5656 public function show ($ id )
5757 {
5858 $ hidangan = Hidangan::where ('id_hidangan ' ,$ id )->get ();
59- return response ()->json (['result ' => $ hidangan ]);
59+ return response ()->json (['hidangan ' => $ hidangan ]);
6060 }
6161 public function showKategori ($ id )
6262 {
6363 $ hidangan = Hidangan::where ('kategori_hidangan ' ,$ id )->get ();
64- return response ()->json (['result ' => $ hidangan ]);
64+ return response ()->json (['hidangan ' => $ hidangan ]);
6565 }
6666 public function showLimitKategori ($ id )
6767 {
6868 $ hidangan = Hidangan::where ('kategori_hidangan ' ,$ id )->limit (4 )->get ();
69- return response ()->json (['result ' => $ hidangan ]);
69+ return response ()->json (['hidangan ' => $ hidangan ]);
7070 }
7171
7272 /**
You can’t perform that action at this time.
0 commit comments