One Hat Cyber Team
Your IP :
3.138.202.226
Server IP :
162.241.123.123
Server :
Linux sh016.hostgator.in 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
Server Software :
Apache
PHP Version :
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home1
/
saicsazq
/
keedoai.com
/
database
/
seeders
/
View File Name :
ChatCategorySeeder.php
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use App\Models\ChatCategory; class ChatCategorySeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $ads = [ ['id' => 1, 'name' => 'Business', 'code' => 'business', 'type' => 'original'], ['id' => 2, 'name' => 'Coach', 'code' => 'coach', 'type' => 'original'], ['id' => 3, 'name' => 'Education', 'code' => 'education', 'type' => 'original'], ['id' => 4, 'name' => 'Health', 'code' => 'health', 'type' => 'original'], ['id' => 5, 'name' => 'Leisure', 'code' => 'leisure', 'type' => 'original'], ['id' => 6, 'name' => 'Specialist', 'code' => 'specialist', 'type' => 'original'], ['id' => 7, 'name' => 'Other', 'code' => 'other', 'type' => 'original'], ]; foreach ($ads as $ad) { ChatCategory::updateOrCreate(['id' => $ad['id']], $ad); } } }