Changes to import and notifications

This commit is contained in:
Simon Pocrnjič
2025-10-13 21:14:10 +02:00
parent 0bbed64542
commit 79b3e20b02
28 changed files with 2173 additions and 438 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ActivityNotificationRead extends Model
{
//
protected $fillable = [
'user_id', 'activity_id', 'due_date', 'read_at',
];
protected $casts = [
'due_date' => 'date',
'read_at' => 'datetime',
];
public function user(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(User::class);
}
public function activity(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(Activity::class);
}
}