Easily add all the 58 Algerian Wilayas and its Dairas to your cool Laravel project (Migrations, Seeders and Models).
About this project
Laravel-Algereography Laravel-Algereography allows you to add Migrations, Seeders and Models of Algerian Wilayas and Dairas to your existing or new cool Laravel project . - 58 Wilayas. - 548 Dairas. - Support both Arabic and French languages. - Built in models relationships, so you can for example do: Daira::find(1)->wilaya to get the Wilaya of Daira with the id=1. Installation Step 1 - Require the package composer require thehocinesaad/laravel-algereography Step 2: Install the package php artisan algereography:install This command will do those good stuff for you: Publish two Models, Wilaya and Daira to app/Models. Publish two Migrations, createwilayastable and createdairastable to database/migrations Publish two Seeders, WilayaSeeder and DairaSeeder to database/seeders Run the two Migrations (createwilayastable and createdairastable) Note: this operation will automatically overwrite any table with the name of wilayas and dairas Run the two Seeders (WilayaSeeder and DairaSeeder) Finally, it prints Done! to make you know that everything is succefully finished then it will print 1 2 3 Viva l'Algérie! just to make you a little bit proud of your country :heart: Step 3:
From the project README on
GitHub
- Stars
- 53
- Forks
- 8
- License
- MIT
- Last push
- 8 Feb 2023
Add this badge to your README
Show that your project is listed on Made in Algeria.
[](https://www.madeinalgeria.dev/projects/laravel-algereography)