code
stringlengths
31
1.39M
docstring
stringlengths
23
16.8k
func_name
stringlengths
1
126
language
stringclasses
1 value
repo
stringlengths
7
63
path
stringlengths
7
166
url
stringlengths
50
220
license
stringclasses
7 values
public function attachments(): array { $attachments = []; foreach ($this->attachmentData as $attachment) { if (isset($attachment['path'])) { $attachments[] = Attachment::fromPath($attachment['path']) ->as($attachment['name'] ?? null) ->withMime($attachment['mime'] ?? null); } elseif (isset($attachment['data'])) { $attachments[] = Attachment::fromData( fn () => $attachment['data'], $attachment['name'] )->withMime($attachment['mime'] ?? null); } } return $attachments; }
Get the attachments for the message. @return array<int, \Illuminate\Mail\Mailables\Attachment>
attachments
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Mail/ApplicationConfirmMail.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Mail/ApplicationConfirmMail.php
MIT
public function attachments(): array { $attachments = []; foreach ($this->attachmentData as $attachment) { if (isset($attachment['path'])) { $attachments[] = Attachment::fromPath($attachment['path']) ->as($attachment['name'] ?? null) ->withMime($attachment['mime'] ?? null); } elseif (isset($attachment['data'])) { $attachments[] = Attachment::fromData( fn () => $attachment['data'], $attachment['name'] )->withMime($attachment['mime'] ?? null); } } return $attachments; }
Get the attachments for the message. @return array<int, \Illuminate\Mail\Mailables\Attachment>
attachments
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Mail/InterviewerAssignedMail.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Mail/InterviewerAssignedMail.php
MIT
protected static function boot() { parent::boot(); static::saved(function (self $candidate) { if (! $candidate->partner_id) { $candidate->handlePartnerCreation($candidate); } else { $candidate->handlePartnerUpdation($candidate); } }); }
Bootstrap the model and its traits.
boot
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Models/Candidate.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Models/Candidate.php
MIT
public function __construct(array $attributes = []) { $this->mergeFillable([ 'address_id', 'manager_id', 'industry_id', 'recruiter_id', 'no_of_hired_employee', 'date_from', 'date_to', ]); $this->mergeCasts([ 'date_from' => 'datetime', 'date_to' => 'datetime', ]); parent::__construct($attributes); }
Create a new Eloquent model instance. @return void
__construct
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Models/JobPosition.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Models/JobPosition.php
MIT
public function viewAny(User $user): bool { return $user->can('view_any_applicant::category'); }
Determine whether the user can view any models.
viewAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
MIT
public function view(User $user, ApplicantCategory $applicantCategory): bool { return $user->can('view_applicant::category'); }
Determine whether the user can view the model.
view
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
MIT
public function create(User $user): bool { return $user->can('create_applicant::category'); }
Determine whether the user can create models.
create
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
MIT
public function update(User $user, ApplicantCategory $applicantCategory): bool { return $user->can('update_applicant::category'); }
Determine whether the user can update the model.
update
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
MIT
public function delete(User $user, ApplicantCategory $applicantCategory): bool { return $user->can('delete_applicant::category'); }
Determine whether the user can delete the model.
delete
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
MIT
public function deleteAny(User $user): bool { return $user->can('delete_any_applicant::category'); }
Determine whether the user can bulk delete.
deleteAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
MIT
public function forceDelete(User $user, ApplicantCategory $applicantCategory): bool { return $user->can('force_delete_applicant::category'); }
Determine whether the user can permanently delete.
forceDelete
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
MIT
public function forceDeleteAny(User $user): bool { return $user->can('force_delete_any_applicant::category'); }
Determine whether the user can permanently bulk delete.
forceDeleteAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
MIT
public function restore(User $user, ApplicantCategory $applicantCategory): bool { return $user->can('restore_applicant::category'); }
Determine whether the user can restore.
restore
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
MIT
public function restoreAny(User $user): bool { return $user->can('restore_any_applicant::category'); }
Determine whether the user can bulk restore.
restoreAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
MIT
public function replicate(User $user, ApplicantCategory $applicantCategory): bool { return $user->can('replicate_applicant::category'); }
Determine whether the user can replicate.
replicate
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
MIT
public function reorder(User $user): bool { return $user->can('reorder_applicant::category'); }
Determine whether the user can reorder.
reorder
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantCategoryPolicy.php
MIT
public function viewAny(User $user): bool { return $user->can('view_any_applicant'); }
Determine whether the user can view any models.
viewAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
MIT
public function view(User $user, Applicant $applicant): bool { return $user->can('view_applicant'); }
Determine whether the user can view the model.
view
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
MIT
public function create(User $user): bool { return $user->can('create_applicant'); }
Determine whether the user can create models.
create
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
MIT
public function update(User $user, Applicant $applicant): bool { if (! $user->can('update_applicant')) { return false; } return $this->hasAccess($user, $applicant, 'recruiter'); }
Determine whether the user can update the model.
update
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
MIT
public function delete(User $user, Applicant $applicant): bool { if (! $user->can('delete_applicant')) { return false; } return $this->hasAccess($user, $applicant, 'recruiter'); }
Determine whether the user can delete the model.
delete
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
MIT
public function deleteAny(User $user): bool { return $user->can('delete_any_applicant'); }
Determine whether the user can bulk delete.
deleteAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
MIT
public function forceDelete(User $user, Applicant $applicant): bool { if (! $user->can('force_delete_applicant')) { return false; } return $this->hasAccess($user, $applicant, 'recruiter'); }
Determine whether the user can permanently delete.
forceDelete
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
MIT
public function forceDeleteAny(User $user): bool { return $user->can('force_delete_any_applicant'); }
Determine whether the user can permanently bulk delete.
forceDeleteAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
MIT
public function restore(User $user, Applicant $applicant): bool { if (! $user->can('restore_applicant')) { return false; } return $this->hasAccess($user, $applicant, 'recruiter'); }
Determine whether the user can restore.
restore
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
MIT
public function restoreAny(User $user): bool { return $user->can('restore_any_applicant'); }
Determine whether the user can bulk restore.
restoreAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
MIT
public function replicate(User $user, Applicant $applicant): bool { if (! $user->can('replicate_applicant')) { return false; } return $this->hasAccess($user, $applicant, 'recruiter'); }
Determine whether the user can replicate.
replicate
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
MIT
public function reorder(User $user): bool { return $user->can('reorder_applicant'); }
Determine whether the user can reorder.
reorder
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/ApplicantPolicy.php
MIT
public function viewAny(User $user): bool { return $user->can('view_any_candidate'); }
Determine whether the user can view any models.
viewAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
MIT
public function view(User $user, Candidate $candidate): bool { return $user->can('view_candidate'); }
Determine whether the user can view the model.
view
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
MIT
public function create(User $user): bool { return $user->can('create_candidate'); }
Determine whether the user can create models.
create
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
MIT
public function update(User $user, Candidate $candidate): bool { if (! $user->can('update_candidate')) { return false; } return $this->hasAccess($user, $candidate, 'manager'); }
Determine whether the user can update the model.
update
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
MIT
public function delete(User $user, Candidate $candidate): bool { if (! $user->can('delete_candidate')) { return false; } return $this->hasAccess($user, $candidate, 'manager'); }
Determine whether the user can delete the model.
delete
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
MIT
public function deleteAny(User $user): bool { return $user->can('delete_any_candidate'); }
Determine whether the user can bulk delete.
deleteAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
MIT
public function forceDelete(User $user, Candidate $candidate): bool { if (! $user->can('force_delete_candidate')) { return false; } return $this->hasAccess($user, $candidate, 'manager'); }
Determine whether the user can permanently delete.
forceDelete
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
MIT
public function forceDeleteAny(User $user): bool { return $user->can('force_delete_any_candidate'); }
Determine whether the user can permanently bulk delete.
forceDeleteAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
MIT
public function restore(User $user, Candidate $candidate): bool { if (! $user->can('restore_candidate')) { return false; } return $this->hasAccess($user, $candidate, 'manager'); }
Determine whether the user can restore.
restore
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
MIT
public function restoreAny(User $user): bool { return $user->can('restore_any_candidate'); }
Determine whether the user can bulk restore.
restoreAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
MIT
public function replicate(User $user, Candidate $candidate): bool { if (! $user->can('replicate_candidate')) { return false; } return $this->hasAccess($user, $candidate, 'manager'); }
Determine whether the user can replicate.
replicate
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
MIT
public function reorder(User $user): bool { return $user->can('reorder_candidate'); }
Determine whether the user can reorder.
reorder
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/CandidatePolicy.php
MIT
public function viewAny(User $user): bool { return $user->can('view_any_degree'); }
Determine whether the user can view any models.
viewAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DegreePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DegreePolicy.php
MIT
public function view(User $user, Degree $degree): bool { return $user->can('view_degree'); }
Determine whether the user can view the model.
view
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DegreePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DegreePolicy.php
MIT
public function create(User $user): bool { return $user->can('create_degree'); }
Determine whether the user can create models.
create
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DegreePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DegreePolicy.php
MIT
public function update(User $user, Degree $degree): bool { return $user->can('update_degree'); }
Determine whether the user can update the model.
update
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DegreePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DegreePolicy.php
MIT
public function delete(User $user, Degree $degree): bool { return $user->can('delete_degree'); }
Determine whether the user can delete the model.
delete
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DegreePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DegreePolicy.php
MIT
public function deleteAny(User $user): bool { return $user->can('delete_any_degree'); }
Determine whether the user can bulk delete.
deleteAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DegreePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DegreePolicy.php
MIT
public function forceDelete(User $user, Degree $degree): bool { return $user->can('force_delete_degree'); }
Determine whether the user can permanently delete.
forceDelete
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DegreePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DegreePolicy.php
MIT
public function forceDeleteAny(User $user): bool { return $user->can('force_delete_any_degree'); }
Determine whether the user can permanently bulk delete.
forceDeleteAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DegreePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DegreePolicy.php
MIT
public function restore(User $user, Degree $degree): bool { return $user->can('restore_degree'); }
Determine whether the user can restore.
restore
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DegreePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DegreePolicy.php
MIT
public function restoreAny(User $user): bool { return $user->can('restore_any_degree'); }
Determine whether the user can bulk restore.
restoreAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DegreePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DegreePolicy.php
MIT
public function replicate(User $user, Degree $degree): bool { return $user->can('replicate_degree'); }
Determine whether the user can replicate.
replicate
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DegreePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DegreePolicy.php
MIT
public function reorder(User $user): bool { return $user->can('reorder_degree'); }
Determine whether the user can reorder.
reorder
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DegreePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DegreePolicy.php
MIT
public function viewAny(User $user): bool { return $user->can('view_any_department'); }
Determine whether the user can view any models.
viewAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
MIT
public function view(User $user, Department $department): bool { return $user->can('view_department'); }
Determine whether the user can view the model.
view
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
MIT
public function create(User $user): bool { return $user->can('create_department'); }
Determine whether the user can create models.
create
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
MIT
public function update(User $user, Department $department): bool { return $user->can('update_department'); }
Determine whether the user can update the model.
update
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
MIT
public function delete(User $user, Department $department): bool { return $user->can('delete_department'); }
Determine whether the user can delete the model.
delete
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
MIT
public function deleteAny(User $user): bool { return $user->can('delete_any_department'); }
Determine whether the user can bulk delete.
deleteAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
MIT
public function forceDelete(User $user, Department $department): bool { return $user->can('force_delete_department'); }
Determine whether the user can permanently delete.
forceDelete
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
MIT
public function forceDeleteAny(User $user): bool { return $user->can('force_delete_any_department'); }
Determine whether the user can permanently bulk delete.
forceDeleteAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
MIT
public function restore(User $user, Department $department): bool { return $user->can('restore_department'); }
Determine whether the user can restore.
restore
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
MIT
public function restoreAny(User $user): bool { return $user->can('restore_any_department'); }
Determine whether the user can bulk restore.
restoreAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
MIT
public function replicate(User $user, Department $department): bool { return $user->can('replicate_department'); }
Determine whether the user can replicate.
replicate
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
MIT
public function reorder(User $user): bool { return $user->can('reorder_department'); }
Determine whether the user can reorder.
reorder
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/DepartmentPolicy.php
MIT
public function viewAny(User $user): bool { return $user->can('view_any_employment::type'); }
Determine whether the user can view any models.
viewAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
MIT
public function view(User $user, EmploymentType $employmentType): bool { return $user->can('view_employment::type'); }
Determine whether the user can view the model.
view
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
MIT
public function create(User $user): bool { return $user->can('create_employment::type'); }
Determine whether the user can create models.
create
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
MIT
public function update(User $user, EmploymentType $employmentType): bool { return $user->can('update_employment::type'); }
Determine whether the user can update the model.
update
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
MIT
public function delete(User $user, EmploymentType $employmentType): bool { return $user->can('delete_employment::type'); }
Determine whether the user can delete the model.
delete
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
MIT
public function deleteAny(User $user): bool { return $user->can('delete_any_employment::type'); }
Determine whether the user can bulk delete.
deleteAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
MIT
public function forceDelete(User $user, EmploymentType $employmentType): bool { return $user->can('force_delete_employment::type'); }
Determine whether the user can permanently delete.
forceDelete
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
MIT
public function forceDeleteAny(User $user): bool { return $user->can('force_delete_any_employment::type'); }
Determine whether the user can permanently bulk delete.
forceDeleteAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
MIT
public function restore(User $user, EmploymentType $employmentType): bool { return $user->can('restore_employment::type'); }
Determine whether the user can restore.
restore
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
MIT
public function restoreAny(User $user): bool { return $user->can('restore_any_employment::type'); }
Determine whether the user can bulk restore.
restoreAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
MIT
public function replicate(User $user, EmploymentType $employmentType): bool { return $user->can('replicate_employment::type'); }
Determine whether the user can replicate.
replicate
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
MIT
public function reorder(User $user): bool { return $user->can('reorder_employment::type'); }
Determine whether the user can reorder.
reorder
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/EmploymentTypePolicy.php
MIT
public function viewAny(User $user): bool { return $user->can('view_any_job::position'); }
Determine whether the user can view any models.
viewAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
MIT
public function view(User $user, JobPosition $jobPosition): bool { return $user->can('view_job::position'); }
Determine whether the user can view the model.
view
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
MIT
public function create(User $user): bool { return $user->can('create_job::position'); }
Determine whether the user can create models.
create
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
MIT
public function update(User $user, JobPosition $jobPosition): bool { return $user->can('update_job::position'); }
Determine whether the user can update the model.
update
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
MIT
public function delete(User $user, JobPosition $jobPosition): bool { return $user->can('delete_job::position'); }
Determine whether the user can delete the model.
delete
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
MIT
public function deleteAny(User $user): bool { return $user->can('delete_any_job::position'); }
Determine whether the user can bulk delete.
deleteAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
MIT
public function forceDelete(User $user, JobPosition $jobPosition): bool { return $user->can('force_delete_job::position'); }
Determine whether the user can permanently delete.
forceDelete
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
MIT
public function forceDeleteAny(User $user): bool { return $user->can('force_delete_any_job::position'); }
Determine whether the user can permanently bulk delete.
forceDeleteAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
MIT
public function restore(User $user, JobPosition $jobPosition): bool { return $user->can('restore_job::position'); }
Determine whether the user can restore.
restore
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
MIT
public function restoreAny(User $user): bool { return $user->can('restore_any_job::position'); }
Determine whether the user can bulk restore.
restoreAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
MIT
public function replicate(User $user, JobPosition $jobPosition): bool { return $user->can('replicate_job::position'); }
Determine whether the user can replicate.
replicate
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
MIT
public function reorder(User $user): bool { return $user->can('reorder_job::position'); }
Determine whether the user can reorder.
reorder
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/JobPositionPolicy.php
MIT
public function viewAny(User $user): bool { return $user->can('view_any_refuse::reason'); }
Determine whether the user can view any models.
viewAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
MIT
public function view(User $user, RefuseReason $refuseReason): bool { return $user->can('view_refuse::reason'); }
Determine whether the user can view the model.
view
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
MIT
public function create(User $user): bool { return $user->can('create_refuse::reason'); }
Determine whether the user can create models.
create
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
MIT
public function update(User $user, RefuseReason $refuseReason): bool { return $user->can('update_refuse::reason'); }
Determine whether the user can update the model.
update
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
MIT
public function delete(User $user, RefuseReason $refuseReason): bool { return $user->can('delete_refuse::reason'); }
Determine whether the user can delete the model.
delete
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
MIT
public function deleteAny(User $user): bool { return $user->can('delete_any_refuse::reason'); }
Determine whether the user can bulk delete.
deleteAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
MIT
public function forceDelete(User $user, RefuseReason $refuseReason): bool { return $user->can('force_delete_refuse::reason'); }
Determine whether the user can permanently delete.
forceDelete
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
MIT
public function forceDeleteAny(User $user): bool { return $user->can('force_delete_any_refuse::reason'); }
Determine whether the user can permanently bulk delete.
forceDeleteAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
MIT
public function restore(User $user, RefuseReason $refuseReason): bool { return $user->can('restore_refuse::reason'); }
Determine whether the user can restore.
restore
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
MIT
public function restoreAny(User $user): bool { return $user->can('restore_any_refuse::reason'); }
Determine whether the user can bulk restore.
restoreAny
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
MIT
public function replicate(User $user, RefuseReason $refuseReason): bool { return $user->can('replicate_refuse::reason'); }
Determine whether the user can replicate.
replicate
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
MIT
public function reorder(User $user): bool { return $user->can('reorder_refuse::reason'); }
Determine whether the user can reorder.
reorder
php
aureuserp/aureuserp
plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/recruitments/src/Policies/RefuseReasonPolicy.php
MIT