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