That would be a refresh (with new data) or an ajax request to get the search data.
Cascading DropDown Boxes
Hi I'm a relative newb to Laravel, I've had a bit of a search and can't seem to find much on them, specifically for Laravel. I want to use Cascading Drop downs to narrow down a search on an address. I have suburb, street_type, and street_name in that order that i would like to use. Ie I select a suburb then the application pulls the street_types for the suburb from the database, which when selected the app then pulls the street_names for the suburb with that type of street suffix. It will then display a list of my addresses available for that street.
This is something I can quite easily do using SQL in MySQL
currently i have HomeController.php
public function index()
{
$suburbs = Suburb::lists('suburb_name', 'id');
return View::make('index')->with('suburbs', $suburbs);
}
index.blade.php
{{ Form::select('suburb', $suburbs) }}
Now I'm really stuck as to what to do from here. I know that I probably need to use some jQuery or ajax, but don't want to learn them at the moment other than the bare minimum, while I'm learning Laravel.
I have an example of doing this from tut's plus but am struggling to translate it from pure PHP to Laravel 4.2.
Please or to participate in this conversation.