Skip to content

AdyGCode/saas-fed-l12-world

Repository files navigation

Livewire Country-State-City dropdown in Laravel 12

Built With

PHP Laravel Tailwindcss Livewire Inertia

Description

A small demo application using AdyGCode's Retro Blade Starter kit, and Livewire.

This demo has 3 drop down select boxes, which provide a filter for each other. The country provides a list of states/provinces/counties/etc from which when a state is selected, the cities are listed.

This repo is arge due to the JSON documents containing the raw data for the application.

(back to top)

Table of Contents

Installation

Clone the repository:

git clone https://github.com/adygcode/saas-fed-l12-world

Change into the new directory:

cd saas-fed-l12-world

Install packages

composer install
npm i

Update packages if you wish:

composer update

Initialise the (SQLite) database:

touch databases/database.sqlite

Copy .env.dev to .env:

cp .env.dev .env

Perform migrations, seeds and key generation:

php artisan key:generate
php artisan migrate:fresh --seed

Run the demo app:

composer run dev

Open http://localhost:8000

You should see:

Screenshot of the demo application

Demo Animation

World-Data-Demo-Screenshot-2.gif

(back to top)

Credits

(back to top)

Badges

Forks Issues

(back to top)

Contact

Adrian Gould - @twitter_handle - email@email_client.com

Project Link: https://github.com/adygcode/saas-fed-l12-world

(back to top)

Licence

Demonstration of Laravel 12 and LiveWire Interdependent Select Boxes. Copyright (C) 2025 Adrian Gould

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

The complete License

(back to top)


About

Demo Livewire Drop Down Boxes using Laravel 12 and Livewire 3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published