Some checks failed
tests / ci (pull_request) Has been cancelled
- Updated LecturerController to load multiple departments for lecturers. - Modified LecturerRequest to accept an array of department IDs instead of a single department ID. - Changed Department model to establish a many-to-many relationship with Lecturer. - Adjusted Lecturer model to reflect the new many-to-many relationship with Department. - Updated LecturerService to handle multiple departments during creation and updates. - Created LecturerFactory and StudentFactory for generating test data. - Added a migration for the new lecturer_department pivot table. - Refactored seeder classes to accommodate the new structure for lecturers and departments. - Enhanced frontend components for creating and editing lecturers to support multiple department selection.
38 lines
1.0 KiB
PHP
38 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class DatabaseSeeder extends Seeder
|
|
{
|
|
use WithoutModelEvents;
|
|
|
|
public function run(): void
|
|
{
|
|
$this->call([
|
|
RolePermissionSeeder::class,
|
|
DepartmentSeeder::class,
|
|
AcademicTermSeeder::class,
|
|
UserSeeder::class,
|
|
DepartmentLeadershipSeeder::class,
|
|
CourseSeeder::class,
|
|
CourseClassSeeder::class,
|
|
ClassEnrollmentSeeder::class,
|
|
CourseRegistrationSeeder::class,
|
|
MaterialSeeder::class,
|
|
AssignmentSeeder::class,
|
|
SubmissionSeeder::class,
|
|
ScheduleSeeder::class,
|
|
AttendanceSeeder::class,
|
|
TuitionInvoiceSeeder::class,
|
|
TuitionPaymentSeeder::class,
|
|
AnnouncementSeeder::class,
|
|
LetterRequestSeeder::class,
|
|
AcademicAdvisingLogSeeder::class,
|
|
NotificationSeeder::class,
|
|
]);
|
|
}
|
|
}
|