芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/app/Models/Designation.php
hasMany(EmployeeDetails::class, 'designation_id'); } public static function allDesignations() { if (user()->permission('view_designation') == 'all' || user()->permission('view_designation') == 'none') { return Designation::all(); } return Designation::where('added_by', user()->id)->get(); } public function childs(): HasMany { return $this->hasMany(Designation::class, 'parent_id')->with('childs'); } }