Initial commit - Tabeley Backend

This commit is contained in:
Zaki-Malla
2026-02-17 19:33:49 +03:00
commit 3c885722f3
109 changed files with 14520 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class Notification extends Model
{
use HasFactory;
protected $fillable = [
'user_id',
'type',
'title',
'body',
'data_json',
'is_read',
];
protected $casts = [
'data_json' => 'array',
'is_read' => 'boolean',
];
public function user()
{
return $this->belongsTo(User::class);
}
}