add tests batch 20

This commit is contained in:
root
2026-06-09 01:03:53 -04:00
parent 95efb9652e
commit 6be4875c5e
1502 changed files with 13797 additions and 11313 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();
}