fix gitlab tests

This commit is contained in:
root
2026-06-09 02:32:58 -04:00
parent 20a0b6c4e5
commit 6def9993da
1489 changed files with 10449 additions and 11356 deletions
+5 -3
View File
@@ -2,6 +2,8 @@
namespace App\Models;
use App\Models\BaseModel;
class EmergencyContact extends BaseModel
{
protected $table = 'emergency_contacts';
@@ -22,8 +24,8 @@ class EmergencyContact extends BaseModel
];
protected $casts = [
'parent_id' => 'integer',
'student_id' => 'integer',
'parent_id' => 'integer',
'student_id' => 'integer',
'authorized_user_id' => 'integer',
];
@@ -70,7 +72,7 @@ class EmergencyContact extends BaseModel
return static::query()
->where(function ($q) use ($studentId) {
$q->where('student_id', $studentId)
->orWhere('parent_id', $studentId);
->orWhere('parent_id', $studentId);
})
->get();
}