214 lines
6.1 KiB
PHP
214 lines
6.1 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Newscategories;
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class NewsCategorySeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
Newscategories::create([
|
|
'category_id'=> 1,
|
|
'title' => 'Provinces',
|
|
'nepali_title'=>'प्रदेश समाचार',
|
|
'alias' => 'provinces',
|
|
'parent_category' => 0,
|
|
'display_order' => 1,
|
|
'status' => 1,
|
|
'remarks' => '',
|
|
'createdBy' => 1,
|
|
'updatedBy' => 1,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
]);
|
|
Newscategories::create([
|
|
'category_id'=> 2,
|
|
'title' => 'Special Reports',
|
|
'nepali_title'=>'बिशेष रिपोर्टस',
|
|
'alias' => 'special-reports',
|
|
'parent_category' => 0,
|
|
'display_order' => 2,
|
|
'status' => 1,
|
|
'remarks' => '',
|
|
'createdBy' => 1,
|
|
'updatedBy' => 1,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
]);
|
|
Newscategories::create([
|
|
'category_id'=> 3,
|
|
'title' => 'Politics',
|
|
'nepali_title'=>'राजनीति',
|
|
'alias' => 'politics',
|
|
'parent_category' => 0,
|
|
'display_order' => 3,
|
|
'status' => 1,
|
|
'remarks' => '',
|
|
'createdBy' => 1,
|
|
'updatedBy' => 1,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
]);
|
|
|
|
Newscategories::create([
|
|
'category_id'=> 4,
|
|
'title' => 'Interview',
|
|
'nepali_title'=>'अन्तरवार्ता',
|
|
'alias' => 'interview',
|
|
'parent_category' => 0,
|
|
'display_order' => 4,
|
|
'status' => 1,
|
|
'remarks' => '',
|
|
'createdBy' => 1,
|
|
'updatedBy' => 1,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
]);
|
|
|
|
Newscategories::create([
|
|
'category_id'=> 5,
|
|
'title' => 'Sports',
|
|
'nepali_title'=>'खेलकुद',
|
|
'alias' => 'sports',
|
|
'parent_category' => 0,
|
|
'display_order' => 5,
|
|
'status' => 1,
|
|
'remarks' => '',
|
|
'createdBy' => 1,
|
|
'updatedBy' => 1,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
]);
|
|
|
|
Newscategories::create([
|
|
'category_id'=> 6,
|
|
'title' => 'Cultural',
|
|
'nepali_title'=>'सांस्कृतिक',
|
|
'alias' => 'cultural',
|
|
'parent_category' => 0,
|
|
'display_order' => 6,
|
|
'status' => 1,
|
|
'remarks' => '',
|
|
'createdBy' => 1,
|
|
'updatedBy' => 1,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
]);
|
|
|
|
Newscategories::create([
|
|
'category_id'=> 7,
|
|
'title' => 'Technology',
|
|
'nepali_title'=>'प्रविधि',
|
|
'alias' => 'technology',
|
|
'parent_category' => 0,
|
|
'display_order' => 7,
|
|
'status' => 1,
|
|
'remarks' => '',
|
|
'createdBy' => 1,
|
|
'updatedBy' => 1,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
]);
|
|
|
|
|
|
Newscategories::create([
|
|
'category_id'=> 8,
|
|
'title' => 'Entertainment',
|
|
'nepali_title'=>'मनोरञ्जन',
|
|
'alias' => 'entertainment',
|
|
'parent_category' => 0,
|
|
'display_order' => 8,
|
|
'status' => 1,
|
|
'remarks' => '',
|
|
'createdBy' => 1,
|
|
'updatedBy' => 1,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
]);
|
|
|
|
|
|
Newscategories::create([
|
|
'category_id'=> 9,
|
|
'title' => 'Feature',
|
|
'nepali_title'=>'फिचर',
|
|
'alias' => 'feature',
|
|
'parent_category' => 0,
|
|
'display_order' => 9,
|
|
'status' => 1,
|
|
'remarks' => '',
|
|
'createdBy' => 1,
|
|
'updatedBy' => 1,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
]);
|
|
|
|
Newscategories::create([
|
|
'category_id'=> 10,
|
|
'title' => 'Society',
|
|
'nepali_title'=>'समाज',
|
|
'alias' => 'society',
|
|
'parent_category' => 0,
|
|
'display_order' => 10,
|
|
'status' => 1,
|
|
'remarks' => '',
|
|
'createdBy' => 1,
|
|
'updatedBy' => 1,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
]);
|
|
|
|
Newscategories::create([
|
|
'category_id'=> 11,
|
|
'title' => 'Thoughts',
|
|
'nepali_title'=>'विचार',
|
|
'alias' => 'thoughts',
|
|
'parent_category' => 0,
|
|
'display_order' => 11,
|
|
'status' => 1,
|
|
'remarks' => '',
|
|
'createdBy' => 1,
|
|
'updatedBy' => 1,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
]);
|
|
|
|
Newscategories::create([
|
|
'category_id'=> 12,
|
|
'title' => 'Agriculture',
|
|
'nepali_title'=>'कृषि',
|
|
'alias' => 'agriculture',
|
|
'parent_category' => 0,
|
|
'display_order' => 12,
|
|
'status' => 1,
|
|
'remarks' => '',
|
|
'createdBy' => 1,
|
|
'updatedBy' => 1,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
]);
|
|
|
|
|
|
Newscategories::create([
|
|
'category_id'=> 13,
|
|
'title' => 'Health',
|
|
'nepali_title'=>'स्वास्थ्य',
|
|
'alias' => 'health',
|
|
'parent_category' => 0,
|
|
'display_order' => 13,
|
|
'status' => 1,
|
|
'remarks' => '',
|
|
'createdBy' => 1,
|
|
'updatedBy' => 1,
|
|
'created_at' => now(),
|
|
'updated_at' => now()
|
|
]);
|
|
|
|
}
|
|
}
|