/** * Display a listing of the resource. * * @return Response */ public function getListings() { $pin = new Pin(); $pins = $pin->all(); return response()->json($pins->toArray()); }