Easily add all the 58 Algerian Wilayas and its Dairas to your cool Laravel project (Migrations, Seeders and Models).
عن هذا المشروع
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:
من ملف README الخاص بالمشروع على
GitHub
- النجوم
- 53
- التفريعات
- 8
- الرخصة
- MIT
- آخر تحديث
- 08/02/2023
أضف هذه الشارة إلى ملف README
أظهر أن مشروعك مُدرج على «صُنع في الجزائر».
[](https://www.madeinalgeria.dev/projects/laravel-algereography)