added document vault and bug fixes on profile and staff members controllers
This commit is contained in:
@@ -148,4 +148,14 @@ class StaffMembersController extends Controller
|
||||
|
||||
return $upcomingStaff;
|
||||
}
|
||||
public function showDetails($id)
|
||||
{
|
||||
$staff = StaffMember::with('dependents')->findOrFail($id);
|
||||
|
||||
return response()->json([
|
||||
'success' => true,
|
||||
'staff' => $staff,
|
||||
'dependents' => $staff->dependents
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user