- Implemented LecturerEdit and LecturerIndex components for managing lecturers. - Created StudentCreate and StudentEdit components for adding and editing students. - Developed StudentIndex component for listing students with search and pagination. - Added department and user types for better type safety. - Updated routes for lecturers and students, including reset password functionality. - Removed AppSidebar from dashboard for a cleaner layout.
37 lines
895 B
PHP
37 lines
895 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Department;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class DepartmentSeeder extends Seeder
|
|
{
|
|
public function run(): void
|
|
{
|
|
Department::insert([
|
|
[
|
|
'code' => 'SI',
|
|
'name' => 'Sistem Informasi',
|
|
'degree_level' => 'S1',
|
|
'created_at' => now(),
|
|
'updated_at' => now(),
|
|
],
|
|
[
|
|
'code' => 'TI',
|
|
'name' => 'Teknik Industri',
|
|
'degree_level' => 'S1',
|
|
'created_at' => now(),
|
|
'updated_at' => now(),
|
|
],
|
|
[
|
|
'code' => 'BD',
|
|
'name' => 'Bisnis Digital',
|
|
'degree_level' => 'S1',
|
|
'created_at' => now(),
|
|
'updated_at' => now(),
|
|
],
|
|
]);
|
|
}
|
|
}
|