siakad-itm/app/Services/Admin/Users/DepartmentService.php
Yoga Pangestu 2885de2c20 feat: add lecturer and student management pages with CRUD functionality
- 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.
2026-08-21 14:14:01 +07:00

15 lines
246 B
PHP

<?php
namespace App\Services\Admin\Users;
use App\Models\Department;
use Illuminate\Support\Collection;
class DepartmentService
{
public function getAll(): Collection
{
return Department::select(['id', 'name'])->get();
}
}