Skip to content

Commit

Permalink
Update TeacherApiController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ArdianS18 committed Nov 20, 2024
1 parent 9bda75c commit bf886c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/Api/TeacherApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public function teacher_attendance(User $user)
{
$employee = $this->employee->getByUser($user->id);
$todayAttendance = $this->attendance->userToday('App\Models\Employee', $employee->id);
dd($todayAttendance);
$history_attendance = $this->attendance->whereUser($employee->id, 'App\Models\Employee');

return response()->json(['status' => 'success', 'message' => "Berhasil mengambil data",'code' => 200,
Expand Down

0 comments on commit bf886c3

Please sign in to comment.