芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/app/Models/UserNotification.php
'object', ]; protected $with = [ 'user', ]; public function user() { return $this->belongsTo(User::class); } public function scopeGetByType($query,$types) { if(is_array($types)) return $query->whereIn('type',$types); } public function scopeNotAuth($query) { $query->where("user_id","!=",auth()->user()->id); } public function scopeAuth($query) { $query->where("user_id",auth()->user()->id); } }