master_template/database/seeders/ProvinceSeeder.php
2024-06-15 22:23:54 +05:45

99 lines
2.9 KiB
PHP

<?php
namespace Database\Seeders;
use App\Models\Provinces;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Str;
class ProvinceSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
Provinces::create([
'title' => 'Province 1',
'province_nepali_name' => 'प्रदेश १',
'alias' => Str::slug('Province 1'),
'status'=>1,
'display_order'=> 1,
'createdBy'=>1,
'updatedBy'=>1,
'created_at' => now(),
'updated_at' => now()
]);
Provinces::create([
'title' => 'Province 2',
'province_nepali_name' => 'प्रदेश २',
'alias' => Str::slug('Province 2'),
'status'=>1,
'display_order'=> 2,
'createdBy'=>1,
'updatedBy'=>1,
'created_at' => now(),
'updated_at' => now()
]);
Provinces::create([
'title' => 'Province 3',
'province_nepali_name' => 'प्रदेश ३',
'alias' => Str::slug('Province 3'),
'status'=>1,
'display_order'=> 3,
'createdBy'=>1,
'updatedBy'=>1,
'created_at' => now(),
'updated_at' => now()
]);
Provinces::create([
'title' => 'Province 4',
'province_nepali_name' => 'प्रदेश ४',
'alias' => Str::slug('Province 4'),
'status'=>1,
'display_order'=> 4,
'createdBy'=>1,
'updatedBy'=>1,
'created_at' => now(),
'updated_at' => now()
]);
Provinces::create([
'title' => 'Province 5',
'province_nepali_name' => 'प्रदेश ५',
'alias' => Str::slug('Province 5'),
'status'=>1,
'display_order'=> 5,
'createdBy'=>1,
'updatedBy'=>1,
'created_at' => now(),
'updated_at' => now()
]);
Provinces::create([
'title' => 'Province 6',
'province_nepali_name' => 'प्रदेश ६',
'alias' => Str::slug('Province 6'),
'status'=>1,
'display_order'=> 6,
'createdBy'=>1,
'updatedBy'=>1,
'created_at' => now(),
'updated_at' => now()
]);
Provinces::create([
'title' => 'Province 7',
'province_nepali_name' => 'प्रदेश ७',
'alias' => Str::slug('Province 7'),
'status'=>1,
'display_order'=> 7,
'createdBy'=>1,
'updatedBy'=>1,
'created_at' => now(),
'updated_at' => now()
]);
}
}