The old helper function pulls flashed data from the session that is set when redirecting with a withInput .
You can pass the get parameters to your view from your controller and pass these variables as a second parameter to the old function.
Hi, I cant find away to re-populate my form with get parameters I have a url like
http://localhost:8000/courses?search=test&category=2&location=&lat=53.559003&lng=-2.077371&radius=2
and my form for the page is as you can see I'm using the "old('radius')" but its not picking up on the get parameter also the pagination is not keeping the parameters too.
{{ Form::select('radius', [ '2' => 'Distance: 2 mi', '5' => 'Distance: 5 mi', '15' => 'Distance: 15 mi', '20' => 'Distance: 20 mi', '30' => 'Distance: 30 mi', '40' => 'Distance: 40 mi', '60' => 'Distance: 60 mi',], old('radius'), ['class' => 'chosen-select-no-single', 'data-placeholder' => 'Choose Distance'] ) }}
Please or to participate in this conversation.