芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/app/Models/Admin/AdminRolePermission.php
belongsTo(AdminRole::class,"admin_role_id"); } public function getStringStatusAttribute() { $status = [ true => "Active", false => "Deactive", ]; return $status[$this->status]; } public function getEditDataAttribute() { $data = [ 'id' => $this->id, 'name' => $this->name, ]; return json_encode($data); } public function hasPermissions() { return $this->hasMany(AdminRoleHasPermission::class,"admin_role_permission_id"); } }