cloudcreativity / laravel-json-api

JSON API (jsonapi.org) package for Laravel applications.
http://laravel-json-api.readthedocs.io/en/latest/
Apache License 2.0
780 stars 109 forks source link

query() method of ValidatedRequest should have same interface as Illuminate\Http\Request #440

Closed jelhan closed 5 years ago

jelhan commented 5 years ago

This adds support for retrieving a specific query param with a default value:

$validatedRequest->query('name', 'Helen');

More information about that feature available in Laravel docs: https://laravel.com/docs/5.8/requests#retrieving-input

It is available for all supported Laravel versions (5.5 and above).

lindyhopchris commented 5 years ago

Agreed, looks good - thanks for submitting!

For 2.0 I'm hoping to extend the form request directly, which will mean the standard Laravel methods will be there, which will hopefully be an improvement!

jstoone commented 5 years ago

Oh yess, that would be amazing @lindyhopchris. :tada: