- 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.
40 lines
1.0 KiB
PHP
40 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\DepartmentLeadership;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class DepartmentLeadershipSeeder extends Seeder
|
|
{
|
|
public function run(): void
|
|
{
|
|
DepartmentLeadership::insert([
|
|
[
|
|
'department_id' => 1,
|
|
'lecturer_id' => 1,
|
|
'started_at' => '2024-01-10',
|
|
'ended_at' => null,
|
|
'created_at' => now(),
|
|
'updated_at' => now(),
|
|
],
|
|
[
|
|
'department_id' => 2,
|
|
'lecturer_id' => 2,
|
|
'started_at' => '2024-01-10',
|
|
'ended_at' => null,
|
|
'created_at' => now(),
|
|
'updated_at' => now(),
|
|
],
|
|
[
|
|
'department_id' => 3,
|
|
'lecturer_id' => 3,
|
|
'started_at' => '2023-06-01',
|
|
'ended_at' => null,
|
|
'created_at' => now(),
|
|
'updated_at' => now(),
|
|
],
|
|
]);
|
|
}
|
|
}
|