First Commit

This commit is contained in:
Muhammad Herdy Iskandar
2024-07-27 00:18:34 +07:00
commit a099b28858
168 changed files with 17696 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
<?php
namespace Database\Seeders;
use App\Models\Student;
use Illuminate\Database\Seeder;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
class StudentSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
Student::create([
'name' => 'Rayyanza Malik Ahmad',
'nim' => '202411023',
'image' => 'default.jpg',
'major_id' => 2,
'email' => 'rayyanza@gmail.com',
'phone' => '08123456789',
'peleton_id' => 1
]);
Student::create([
'name' => 'Muhammad Rizky Akbar',
'nim' => '202431091',
'image' => 'default.jpg',
'major_id' => 7,
'email' => 'rizky@gmail.com',
'phone' => '08123456789',
'peleton_id' => 2
]);
Student::Create([
'name' => 'Mazaya Amania',
'nim' => '202432092',
'image' => 'default.jpg',
'major_id' => 8,
'email' => 'mazaya@gmail.com',
'phone' => '08123456789',
'peleton_id' => 3
]);
}
}