Here's what I propose for our API validation, which comes almost entirely from Dingo.
For a store route (eg ListingsLocationsController::store()
), we'd throw a StoreResourceFailedException
:
# app/controllers/ListingsLocationsController.php
public function store($listingId) {
$input = Input::all();
$input['listing_id'] = $listingId;
$location = new Location($input);