⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.31
Server IP:
95.217.99.93
Server:
Linux sv1.sonichosted.com 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
lifestylescentra
/
www
/
database
/
seeders
/
View File Name :
AdminInfoSeeder.php
<?php namespace Database\Seeders; use App\Models\Admin; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\Hash; use Spatie\Permission\Models\Role; class AdminInfoSeeder extends Seeder { /** * Run the database seeds. */ public function run(): void { if (!Admin::first()) { $admin = new Admin(); $admin->name = 'John Doe'; $admin->email = 'admin@gmail.com'; $admin->image = 'uploads/website-images/admin.jpg'; $admin->password = Hash::make(1234); $admin->status = 'active'; $admin->save(); $role = Role::first(); $admin?->assignRole($role); } } }