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
+10 -9
View File
@@ -3,6 +3,7 @@
namespace App\Models;
use Illuminate\Database\Eloquent\Builder;
use App\Models\BaseModel;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class UserNotification extends BaseModel
@@ -24,10 +25,10 @@ class UserNotification extends BaseModel
protected $casts = [
'notification_id' => 'integer',
'user_id' => 'integer',
'is_read' => 'boolean',
'delivered' => 'boolean',
'delivered_at' => 'datetime',
'user_id' => 'integer',
'is_read' => 'boolean',
'delivered' => 'boolean',
'delivered_at' => 'datetime',
];
/* ============================================================
@@ -111,10 +112,10 @@ class UserNotification extends BaseModel
return [
'notification_id' => [$req, 'integer', 'min:1', 'exists:notifications,id'],
'user_id' => [$req, 'integer', 'min:1', 'exists:users,id'],
'is_read' => ['nullable', 'boolean'],
'delivered' => ['nullable', 'boolean'],
'delivered_at' => ['nullable', 'date'],
'user_id' => [$req, 'integer', 'min:1', 'exists:users,id'],
'is_read' => ['nullable', 'boolean'],
'delivered' => ['nullable', 'boolean'],
'delivered_at' => ['nullable', 'date'],
];
}
}
}