One Hat Cyber Team
Your IP :
3.145.112.33
Server IP :
103.133.214.160
Server :
Linux venus.ewebguru.net 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software :
Apache/2
PHP Version :
8.1.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
praval
/
public_html
/
core
/
database
/
seeders
/
View File Name :
DatabaseSeeder.php
<?php namespace Database\Seeders; // use Illuminate\Database\Console\Seeds\WithoutModelEvents; use App\Models\EmailTemplate; use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. */ public function run(): void { if (EmailTemplate::where('type', 'New Order Admin')->count() == 0) { $emailTemplete = new EmailTemplate(); $emailTemplete->type = 'New Order Admin'; $emailTemplete->subject = 'New Order'; $emailTemplete->body = '<p>You Got a order, Transaction number {transaction_number}</p>'; $emailTemplete->save(); } } }