芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/app/Models/Admin/AdminRole.php
$this->id, 'name' => $this->name, ]; return json_encode($data); } public function scopeActive($query) { return $query->where("status",true); } public function scopeNotSuperAdmin($query) { $query->whereNot("name",AdminRoleConst::SUPER_ADMIN); } public function createdBy() { return $this->belongsTo(Admin::class); } public function assignRole() { return $this->hasMany(AdminHasRole::class); } }