One Hat Cyber Team
Your IP :
13.59.182.74
Server IP :
104.21.16.1
Server :
Linux agrigation-prod 5.15.0-67-generic #74-Ubuntu SMP Wed Feb 22 14:14:39 UTC 2023 x86_64
Server Software :
nginx/1.24.0
PHP Version :
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
forge
/
gftag.com
/
app
/
Models
/
Edit File:
Notification.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Notification extends Model { protected $fillable = ['order_id','user_id']; public function order() { return $this->belongsTo('App\Models\Order')->withDefault(); } public function user() { return $this->belongsTo('App\Models\User')->withDefault(); } public static function countRegistration() { return Notification::where('user_id','!=',null)->where('is_read','=',0)->count(); } public static function countOrder() { return Notification::where('order_id','!=',null)->where('is_read','=',0)->count(); } }
Simpan