You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Algerian provinces migration and seeder for Laravel applications
10
+
[Algerian provinces](wilayas.md) migration and seeder for Laravel applications
11
11
12
12
## Installation
13
13
@@ -44,7 +44,7 @@ This is the contents of the published config file:
44
44
```php
45
45
return [
46
46
'table_name' => null, // defaults to wilayas
47
-
'column_name' => [
47
+
'columns_names' => [
48
48
'wilaya_fr_name' => null, // defaults to fr_name
49
49
'wilaya_ar_name' => null, // defaults to ar_name
50
50
],
@@ -55,7 +55,9 @@ That allows you to rename the `table` and `columns` names before running the mig
55
55
56
56
## Usage
57
57
58
-
After publishing and running the migrations, add the `ElaborateCode\AlgerianProvinces\Database\Seeders\WilayaSeeder` to the called seeders list or call it directly from the command line.
58
+
### Seeding
59
+
60
+
After publishing and running the migrations, add the `ElaborateCode\AlgerianProvinces\Database\Seeders\WilayaSeeder` to the called seeders list:
59
61
60
62
```php
61
63
<?php
@@ -66,11 +68,7 @@ use Illuminate\Database\Seeder;
66
68
67
69
class DatabaseSeeder extends Seeder
68
70
{
69
-
/**
70
-
* Seed the application's database.
71
-
*
72
-
* @return void
73
-
*/
71
+
74
72
public function run()
75
73
{
76
74
$this->call([
@@ -80,70 +78,30 @@ class DatabaseSeeder extends Seeder
0 commit comments