home
/
forge
/
roadtovirtuosity.com
/
database
/
seeders
➕ New
📤 Upload
✎ Editing:
AdminSeeder.php
← Back
<?php namespace Database\Seeders; use Illuminate\Database\Console\Seeds\WithoutModelEvents; use Illuminate\Database\Seeder; use App\Models\Admin; use Illuminate\Support\Facades\Hash; class AdminSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $admin = Admin::create([ 'name' => 'admin', 'email' => 'admin@gmail.com', 'email_verified_at' => now(), 'password' => Hash::make('password'), 'phone_number' => '08123123123', ]); $teacher = Admin::create([ 'name' => 'teacher', 'email' => 'teacher@gmail.com', 'email_verified_at' => now(), 'password' => Hash::make('password'), 'phone_number' => '08123123123', ]); $teacher->assignRole('teacher'); $admin->assignRole('admin'); } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel