You've already forked Atomcms-edit
Initial commit
This commit is contained in:
Executable
+33
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Models\User;
|
||||
|
||||
use App\Models\Concerns\BelongsToUser;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|UserNotification create($attributes = [])
|
||||
*/
|
||||
class UserNotification extends Model
|
||||
{
|
||||
use BelongsToUser;
|
||||
|
||||
#[\Override]
|
||||
protected $guarded = ['id', 'created_at', 'updated_at', 'user_id', 'type'];
|
||||
|
||||
#[\Override]
|
||||
public $timestamps = true;
|
||||
|
||||
/** @var array<string, string> */
|
||||
#[\Override]
|
||||
protected $casts = [
|
||||
'read' => 'boolean',
|
||||
];
|
||||
|
||||
public static function insert(array $data): void
|
||||
{
|
||||
self::create($data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user