add test batches
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\BaseModel;
|
||||
|
||||
class ParentNotification extends BaseModel
|
||||
{
|
||||
protected $table = 'parent_notifications';
|
||||
@@ -23,7 +25,7 @@ class ParentNotification extends BaseModel
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'student_id' => 'integer',
|
||||
'student_id' => 'integer',
|
||||
// incident_date is stored as Y-m-d in legacy usage
|
||||
'incident_date' => 'date',
|
||||
];
|
||||
@@ -50,7 +52,7 @@ class ParentNotification extends BaseModel
|
||||
->whereDate('incident_date', $incidentYmd)
|
||||
->where('channel', $channel);
|
||||
|
||||
if (! empty($to)) {
|
||||
if (!empty($to)) {
|
||||
$q->where('to_address', $to);
|
||||
}
|
||||
|
||||
@@ -58,4 +60,4 @@ class ParentNotification extends BaseModel
|
||||
|
||||
return $row && (($row->status ?? '') === 'sent');
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user