コード例 #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $restaurants = Restaurant::get();
     return response()->json(["msg" => "Success", "restaurants" => $restaurants->toArray()], 200);
 }