⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.138
Server IP:
186.226.58.36
Server:
Linux da02.sh15.net 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Server Software:
Apache/2
PHP Version:
8.1.32
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
redesystem
/
public_html
/
sys
/
app
/
Models
/
View File Name :
Notification.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; /** * App\Models\Notification * * @property int $id * @property int $type * @property int $user_id * @property string $title * @property string|null $text * @property string|null $meta * @property string|null $read_at * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @property-read \App\Models\User $user * * @method static \Illuminate\Database\Eloquent\Builder|Notification newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Notification newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Notification query() * @method static \Illuminate\Database\Eloquent\Builder|Notification whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereMeta($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereReadAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereText($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereTitle($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereType($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Notification whereUserId($value) * * @mixin \Eloquent */ class Notification extends Model { use HasFactory; /** * @var string */ public $table = 'notifications'; /** * @var string[] */ public $fillable = [ 'type', 'user_id', 'title', 'text', 'meta', 'read_at', ]; protected $casts = [ 'type' => 'integer', 'title' => 'string', 'text' => 'string', 'meta' => 'json', 'read_at' => 'datetime', 'user_id' => 'integer', ]; const NOTIFICATION_TYPE = [ 'Invoice Created' => 1, 'Invoice Updated' => 2, 'Invoice Payment' => 3, 'Invoice Status' => 4, ]; public function user(): BelongsTo { return $this->belongsTo(User::class, 'user_id'); } }