This commit is contained in:
tanch0
2024-06-15 22:23:54 +05:45
parent 8253440371
commit cb99bedac6
144 changed files with 6436 additions and 3112 deletions

View File

@ -13,5 +13,7 @@ class DatabaseSeeder extends Seeder
public function run(): void
{
$this->call(UserSeeder::class);
$this->call(ProvinceSeeder::class);
$this->call(NewsTypeSeeder::class);
}
}

View File

@ -0,0 +1,38 @@
<?php
namespace Database\Seeders;
use App\Models\News_type;
use Illuminate\Support\Str;
use Illuminate\Database\Seeder;
class NewsTypeSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
News_type::create([
'title'=>'International',
'title_nepali'=>'अंतरराष्ट्रीय',
'alias'=> Str::slug('International'),
'status'=>1,
'display_order'=>1,
'created_at'=>now(),
'updated_at'=>now()
]);
News_type::create([
'title'=>'National',
'title_nepali'=>'राष्ट्रीय',
'alias'=> Str::slug('National'),
'status'=>1,
'display_order'=>1,
'created_at'=>now(),
'updated_at'=>now()
]);
}
}

View File

@ -0,0 +1,98 @@
<?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()
]);
}
}