Automatic dropdown box loading using Laravel and Jquery/Ajax

By | March 9, 2017

Automatic dropdown box loading using Laravel and Jquery/Ajax

Below are the files required for dropdown box loading based on another dropdown selection.Here if we
select one country dropdown, then state dropdown will load automaticaly.

Routes,Models,view,controller files are listed below

Routes.php

view file will be in the resource folder views/dropdown/drodown.blade.php

here i used the controller named welcomecontroller

Models Files are..

Country.php,State.php