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