Portatour Reviews ~upd~ ❲EXTENDED❳
// POST /api/tours/tourId/reviews public function store(Request $request, $tourId) max:5', 'title' => 'required API Endpoint: Get Reviews for a Tour (with sorting/filtering) // GET /api/tours/tourId/reviews public function index($tourId)
return $this->belongsTo(Tour::class);
public function markHelpful($userId)
const submitReview = async () => await fetch( /api/tours/$tourId/reviews , method: 'POST', headers: 'Content-Type': 'application/json' , body: JSON.stringify(newReview) ); // refresh reviews ; portatour reviews
class PortaTourReview extends Model
public function tour()



You must be logged in to post a comment.