/home/techb158/ileadtechnology.com/SSM/app/Policies/employee
NameSizeModeActions
AttendancePolicy.php12570644editdlrm
EmployeePolicy.php21170644editdlrm
LeaveRequestPolicy.php18390644editdlrm
PayrollPolicy.php19910644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/app/Policies/employee/LeaveRequestPolicy.php (1839B)
can('request-leave'); } /** * Determine whether the user can list the leave request. * * @param \App\User $user * @param \App\Models\Employee\LeaveRequest $leave_request * @return mixed */ public function list(User $user) { return $user->can('request-leave'); } /** * Determine whether the user can request the leave. * * @param \App\User $user * @param \App\Models\Employee\LeaveRequest $leave_request * @return mixed */ public function create(User $user) { return $user->can('request-leave'); } /** * Determine whether the user can view the leave reqeuest. * * @param \App\User $user * @param \App\Models\Employee\LeaveRequest $leave_request * @return mixed */ public function show(User $user) { return $user->can('request-leave'); } /** * Determine whether the user can update status of the leave reqeuest. * * @param \App\User $user * @param \App\Models\Employee\LeaveRequest $leave_request * @return mixed */ public function updateStatus(User $user) { return $user->can('take-action-on-leave-request'); } }