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 |
---|---|---|---|---|---|---|---|
protected function saveAndDownloadPDF(string $html, ?string $fileName = null): array
{
$filePath = $this->savePDF($html, $fileName);
$downloadResponse = $this->downloadPDF($html, $fileName);
return ['path' => $filePath, 'download' => $downloadResponse];
}
|
Generate a PDF, save it, and return both the file path and download response.
@param string $html HTML content to convert to PDF.
@param string|null $fileName Optional filename (without extension).
@return array Returns an array with the file path and download response.
|
saveAndDownloadPDF
|
php
|
aureuserp/aureuserp
|
plugins/webkul/support/src/Traits/PDFHandler.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/support/src/Traits/PDFHandler.php
|
MIT
|
public function getColor(): string|array|null
{
return $this->evaluate($this->color);
}
|
@return string | array{50: string, 100: string, 200: string, 300: string, 400: string, 500: string, 600: string, 700: string, 800: string, 900: string, 950: string} | null
|
getColor
|
php
|
aureuserp/aureuserp
|
plugins/webkul/table-views/src/Filament/Components/PresetView.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/table-views/src/Filament/Components/PresetView.php
|
MIT
|
public function user()
{
return $this->belongsTo(User::class);
}
|
Get the user that owns the saved filter.
|
user
|
php
|
aureuserp/aureuserp
|
plugins/webkul/table-views/src/Models/TableView.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/table-views/src/Models/TableView.php
|
MIT
|
public function user()
{
return $this->belongsTo(User::class);
}
|
Get the user that owns the saved filter.
|
user
|
php
|
aureuserp/aureuserp
|
plugins/webkul/table-views/src/Models/TableViewFavorite.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/table-views/src/Models/TableViewFavorite.php
|
MIT
|
public function viewAny(User $user): bool
{
return $user->can('view_any_table_view');
}
|
Determine whether the user can view any models.
|
viewAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
MIT
|
public function view(User $user, TableView $tableView): bool
{
return $user->can('view_table_view');
}
|
Determine whether the user can view the model.
|
view
|
php
|
aureuserp/aureuserp
|
plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
MIT
|
public function create(User $user): bool
{
return $user->can('create_table_view');
}
|
Determine whether the user can create models.
|
create
|
php
|
aureuserp/aureuserp
|
plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
MIT
|
public function update(User $user, TableView $tableView): bool
{
return $user->can('update_table_view');
}
|
Determine whether the user can update the model.
|
update
|
php
|
aureuserp/aureuserp
|
plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
MIT
|
public function delete(User $user, TableView $tableView): bool
{
return $user->can('delete_table_view');
}
|
Determine whether the user can delete the model.
|
delete
|
php
|
aureuserp/aureuserp
|
plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
MIT
|
public function deleteAny(User $user): bool
{
return $user->can('delete_any_table_view');
}
|
Determine whether the user can bulk delete.
|
deleteAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
MIT
|
public function forceDelete(User $user, TableView $tableView): bool
{
return $user->can('force_delete_table_view');
}
|
Determine whether the user can permanently delete.
|
forceDelete
|
php
|
aureuserp/aureuserp
|
plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
MIT
|
public function forceDeleteAny(User $user): bool
{
return $user->can('force_delete_any_table_view');
}
|
Determine whether the user can permanently bulk delete.
|
forceDeleteAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
MIT
|
public function restore(User $user, TableView $tableView): bool
{
return $user->can('restore_table_view');
}
|
Determine whether the user can restore.
|
restore
|
php
|
aureuserp/aureuserp
|
plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
MIT
|
public function restoreAny(User $user): bool
{
return $user->can('restore_any_table_view');
}
|
Determine whether the user can bulk restore.
|
restoreAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
MIT
|
public function replicate(User $user, TableView $tableView): bool
{
return $user->can('replicate_table_view');
}
|
Determine whether the user can replicate.
|
replicate
|
php
|
aureuserp/aureuserp
|
plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
MIT
|
public function reorder(User $user): bool
{
return $user->can('reorder_table_view');
}
|
Determine whether the user can reorder.
|
reorder
|
php
|
aureuserp/aureuserp
|
plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/table-views/src/Policies/TableViewPolicy.php
|
MIT
|
public function definition(): array
{
return [
//
];
}
|
Define the model's default state.
@return array<string, mixed>
|
definition
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/database/factories/LeaveAccrualLevelFactory.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/database/factories/LeaveAccrualLevelFactory.php
|
MIT
|
public function definition(): array
{
return [
//
];
}
|
Define the model's default state.
@return array<string, mixed>
|
definition
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/database/factories/LeaveAccrualPlanFactory.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/database/factories/LeaveAccrualPlanFactory.php
|
MIT
|
public function definition(): array
{
return [
//
];
}
|
Define the model's default state.
@return array<string, mixed>
|
definition
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/database/factories/LeaveAllocationFactory.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/database/factories/LeaveAllocationFactory.php
|
MIT
|
public function definition(): array
{
return [
//
];
}
|
Define the model's default state.
@return array<string, mixed>
|
definition
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/database/factories/LeaveFactory.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/database/factories/LeaveFactory.php
|
MIT
|
public function definition(): array
{
return [
//
];
}
|
Define the model's default state.
@return array<string, mixed>
|
definition
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/database/factories/LeaveMandatoryDayFactory.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/database/factories/LeaveMandatoryDayFactory.php
|
MIT
|
public function definition(): array
{
$leaveNames = [
'Annual Leave',
'Sick Leave',
'Maternity Leave',
'Paternity Leave',
'Study Leave',
'Bereavement Leave',
'Personal Leave',
'Unpaid Leave',
'Work From Home',
'Compensatory Off',
];
return [
'sort' => fake()->numberBetween(1000, 500000),
'color' => fake()->boolean(30) ? fake()->hexColor() : null,
'company_id' => fake()->numberBetween(1000, 5000),
'max_allowed_negative' => fake()->randomElement([1, 2, 3, 5, 10]),
'creator_id' => fake()->boolean(70) ? fake()->numberBetween(1, 5000) : null,
'leave_validation_type' => fake()->randomElement(['both', 'manager', 'hr']),
'requires_allocation' => fake()->boolean(),
'employee_requests' => fake()->boolean(),
'allocation_validation_type' => 'hr',
'time_type' => 'leave',
'request_unit' => fake()->randomElement(['day', 'hour', 'half_day']),
'name' => fake()->randomElement($leaveNames),
'create_calendar_meeting' => fake()->boolean(80),
'is_active' => fake()->boolean(90),
'show_on_dashboard' => fake()->boolean(70),
'unpaid' => fake()->boolean(20),
'include_public_holidays_in_duration' => fake()->boolean(30),
'support_document' => fake()->boolean(40),
'allows_negative' => fake()->boolean(30),
'created_at' => fake()->dateTimeBetween('-1 year', 'now'),
'updated_at' => fake()->dateTimeBetween('-1 month', 'now'),
];
}
|
Define the model's default state.
@return array<string, mixed>
|
definition
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/database/factories/LeaveTypeFactory.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/database/factories/LeaveTypeFactory.php
|
MIT
|
public function run()
{
DB::table('time_off_leave_accrual_plans')->delete();
$user = User::first();
$company = Company::first();
$leaveAccrualPlans = [
[
'company_id' => $company?->id,
'creator_id' => $user?->id,
'name' => 'Seniority Plan',
'transition_mode' => 'immediately',
'accrued_gain_time' => 'end',
'carryover_date' => 'year_start',
'carryover_month' => 'jan',
'is_active' => true,
'created_at' => now(),
'updated_at' => now(),
],
];
DB::table('time_off_leave_accrual_plans')->insert($leaveAccrualPlans);
}
|
Run the database seeds.
@return void
|
run
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/database/seeders/AccrualPlanSeeder.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/database/seeders/AccrualPlanSeeder.php
|
MIT
|
public function run($parameters = [])
{
$this->call([
AccrualPlanSeeder::class,
LeaveTypeSeeder::class,
LeaveMandatoryDay::class,
LeaveTypeSeeder::class,
]);
}
|
Seed the application's database.
@param array $parameters
@return void
|
run
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/database/seeders/DatabaseSeeder.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/database/seeders/DatabaseSeeder.php
|
MIT
|
public function run()
{
DB::table('time_off_leave_mandatory_days')->delete();
$user = User::first();
$leaveMandatoryDays = [
[
'company_id' => 1,
'creator_id' => $user?->id,
'color' => '#FF0000',
'name' => 'New Year',
'start_date' => '2022-01-01',
'end_date' => '2022-01-01',
'created_at' => now(),
'updated_at' => now(),
],
[
'company_id' => 1,
'creator_id' => $user?->id,
'color' => '#FF0000',
'name' => 'Christmas',
'start_date' => '2022-12-25',
'end_date' => '2022-12-25',
'created_at' => now(),
'updated_at' => now(),
],
];
DB::table('time_off_leave_mandatory_days')->insert($leaveMandatoryDays);
}
|
Run the database seeds.
@return void
|
run
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/database/seeders/LeaveMandatoryDay.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/database/seeders/LeaveMandatoryDay.php
|
MIT
|
public function run()
{
DB::table('time_off_leave_types')->delete();
$company = Company::first();
$user = User::first();
$timeOffLeaveTypes = [
[
'sort' => 1,
'color' => fake()->hexColor(),
'company_id' => $company?->id,
'max_allowed_negative' => 20,
'creator_id' => $user?->id,
'leave_validation_type' => 'both',
'requires_allocation' => 'yes',
'employee_requests' => 'no',
'allocation_validation_type' => 'hr',
'time_type' => 'leave',
'request_unit' => 'day',
'name' => 'Training Time Off',
'create_calendar_meeting' => true,
'is_active' => true,
'show_on_dashboard' => true,
'unpaid' => false,
'include_public_holidays_in_duration' => false,
'support_document' => false,
'allows_negative' => null,
],
[
'sort' => 1,
'color' => fake()->hexColor(),
'company_id' => $company?->id,
'max_allowed_negative' => null,
'creator_id' => $user?->id,
'leave_validation_type' => 'both',
'requires_allocation' => 'yes',
'employee_requests' => 'no',
'allocation_validation_type' => 'hr',
'time_type' => 'leave',
'request_unit' => 'day',
'name' => 'Paid Time Off',
'create_calendar_meeting' => true,
'is_active' => true,
'show_on_dashboard' => true,
'unpaid' => false,
'include_public_holidays_in_duration' => false,
'support_document' => false,
'allows_negative' => null,
],
[
'sort' => 3,
'color' => fake()->hexColor(),
'company_id' => $company?->id,
'max_allowed_negative' => null,
'creator_id' => $user?->id,
'leave_validation_type' => 'manager',
'requires_allocation' => 'yes',
'employee_requests' => 'no',
'allocation_validation_type' => 'hr',
'time_type' => 'leave',
'request_unit' => 'day',
'name' => 'Parental Leaves',
'create_calendar_meeting' => true,
'is_active' => true,
'show_on_dashboard' => true,
'unpaid' => false,
'include_public_holidays_in_duration' => false,
'support_document' => false,
'allows_negative' => null,
],
[
'sort' => 4,
'color' => fake()->hexColor(),
'company_id' => $company?->id,
'max_allowed_negative' => null,
'creator_id' => $user?->id,
'leave_validation_type' => 'manager',
'requires_allocation' => 'yes',
'employee_requests' => 'yes',
'allocation_validation_type' => 'hr',
'time_type' => 'leave',
'request_unit' => 'day',
'name' => 'Compensatory Days test',
'create_calendar_meeting' => true,
'is_active' => true,
'show_on_dashboard' => true,
'unpaid' => false,
'include_public_holidays_in_duration' => true,
'support_document' => true,
'allows_negative' => true,
],
[
'sort' => 5,
'color' => fake()->hexColor(),
'company_id' => $company?->id,
'max_allowed_negative' => null,
'creator_id' => $user?->id,
'leave_validation_type' => 'both',
'requires_allocation' => 'no',
'employee_requests' => 'no',
'allocation_validation_type' => 'hr',
'time_type' => 'leave',
'request_unit' => 'day',
'name' => 'Sick Time Off',
'create_calendar_meeting' => true,
'is_active' => true,
'show_on_dashboard' => true,
'unpaid' => false,
'include_public_holidays_in_duration' => true,
'support_document' => true,
'allows_negative' => null,
],
[
'sort' => 6,
'color' => fake()->hexColor(),
'company_id' => $company?->id,
'max_allowed_negative' => null,
'creator_id' => $user?->id,
'leave_validation_type' => 'both',
'requires_allocation' => 'yes',
'employee_requests' => 'no',
'allocation_validation_type' => 'hr',
'time_type' => 'leave',
'request_unit' => 'hour',
'name' => 'Unpaid',
'create_calendar_meeting' => true,
'is_active' => true,
'show_on_dashboard' => true,
'unpaid' => true,
'include_public_holidays_in_duration' => false,
'support_document' => null,
'allows_negative' => true,
],
];
DB::table('time_off_leave_types')->insert(collect($timeOffLeaveTypes)->map(function ($leaveType) {
return array_merge($leaveType, [
'created_at' => now(),
'updated_at' => now(),
]);
})->toArray());
}
|
Run the database seeds.
@return void
|
run
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/database/seeders/LeaveTypeSeeder.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/database/seeders/LeaveTypeSeeder.php
|
MIT
|
public function viewAny(User $user): bool
{
return $user->can('view_any_activity::type');
}
|
Determine whether the user can view any models.
|
viewAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
MIT
|
public function view(User $user, ActivityType $activityType): bool
{
return $user->can('view_activity::type');
}
|
Determine whether the user can view the model.
|
view
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
MIT
|
public function create(User $user): bool
{
return $user->can('create_activity::type');
}
|
Determine whether the user can create models.
|
create
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
MIT
|
public function update(User $user, ActivityType $activityType): bool
{
return $user->can('update_activity::type');
}
|
Determine whether the user can update the model.
|
update
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
MIT
|
public function delete(User $user, ActivityType $activityType): bool
{
return $user->can('delete_activity::type');
}
|
Determine whether the user can delete the model.
|
delete
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
MIT
|
public function deleteAny(User $user): bool
{
return $user->can('delete_any_activity::type');
}
|
Determine whether the user can bulk delete.
|
deleteAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
MIT
|
public function forceDelete(User $user, ActivityType $activityType): bool
{
return $user->can('force_delete_activity::type');
}
|
Determine whether the user can permanently delete.
|
forceDelete
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
MIT
|
public function forceDeleteAny(User $user): bool
{
return $user->can('force_delete_any_activity::type');
}
|
Determine whether the user can permanently bulk delete.
|
forceDeleteAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
MIT
|
public function restore(User $user, ActivityType $activityType): bool
{
return $user->can('restore_activity::type');
}
|
Determine whether the user can restore.
|
restore
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
MIT
|
public function restoreAny(User $user): bool
{
return $user->can('restore_any_activity::type');
}
|
Determine whether the user can bulk restore.
|
restoreAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
MIT
|
public function replicate(User $user, ActivityType $activityType): bool
{
return $user->can('replicate_activity::type');
}
|
Determine whether the user can replicate.
|
replicate
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
MIT
|
public function reorder(User $user): bool
{
return $user->can('reorder_activity::type');
}
|
Determine whether the user can reorder.
|
reorder
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/ActivityTypePolicy.php
|
MIT
|
public function viewAny(User $user): bool
{
return $user->can('view_any_public::holiday');
}
|
Determine whether the user can view any models.
|
viewAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
MIT
|
public function view(User $user, CalendarLeave $calendarLeave): bool
{
return $user->can('view_public::holiday');
}
|
Determine whether the user can view the model.
|
view
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
MIT
|
public function create(User $user): bool
{
return $user->can('create_public::holiday');
}
|
Determine whether the user can create models.
|
create
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
MIT
|
public function update(User $user, CalendarLeave $calendarLeave): bool
{
return $user->can('update_public::holiday');
}
|
Determine whether the user can update the model.
|
update
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
MIT
|
public function delete(User $user, CalendarLeave $calendarLeave): bool
{
return $user->can('delete_public::holiday');
}
|
Determine whether the user can delete the model.
|
delete
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
MIT
|
public function deleteAny(User $user): bool
{
return $user->can('delete_any_public::holiday');
}
|
Determine whether the user can bulk delete.
|
deleteAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
MIT
|
public function forceDelete(User $user, CalendarLeave $calendarLeave): bool
{
return $user->can('force_delete_public::holiday');
}
|
Determine whether the user can permanently delete.
|
forceDelete
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
MIT
|
public function forceDeleteAny(User $user): bool
{
return $user->can('force_delete_any_public::holiday');
}
|
Determine whether the user can permanently bulk delete.
|
forceDeleteAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
MIT
|
public function restore(User $user, CalendarLeave $calendarLeave): bool
{
return $user->can('restore_public::holiday');
}
|
Determine whether the user can restore.
|
restore
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
MIT
|
public function restoreAny(User $user): bool
{
return $user->can('restore_any_public::holiday');
}
|
Determine whether the user can bulk restore.
|
restoreAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
MIT
|
public function replicate(User $user, CalendarLeave $calendarLeave): bool
{
return $user->can('replicate_public::holiday');
}
|
Determine whether the user can replicate.
|
replicate
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
MIT
|
public function reorder(User $user): bool
{
return $user->can('reorder_public::holiday');
}
|
Determine whether the user can reorder.
|
reorder
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/CalendarLeavePolicy.php
|
MIT
|
public function viewAny(User $user): bool
{
return $user->can('view_any_accrual::plan');
}
|
Determine whether the user can view any models.
|
viewAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
MIT
|
public function view(User $user, LeaveAccrualPlan $leaveAccrualPlan): bool
{
return $user->can('view_accrual::plan');
}
|
Determine whether the user can view the model.
|
view
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
MIT
|
public function create(User $user): bool
{
return $user->can('create_accrual::plan');
}
|
Determine whether the user can create models.
|
create
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
MIT
|
public function update(User $user, LeaveAccrualPlan $leaveAccrualPlan): bool
{
return $user->can('update_accrual::plan');
}
|
Determine whether the user can update the model.
|
update
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
MIT
|
public function delete(User $user, LeaveAccrualPlan $leaveAccrualPlan): bool
{
return $user->can('delete_accrual::plan');
}
|
Determine whether the user can delete the model.
|
delete
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
MIT
|
public function deleteAny(User $user): bool
{
return $user->can('delete_any_accrual::plan');
}
|
Determine whether the user can bulk delete.
|
deleteAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
MIT
|
public function forceDelete(User $user, LeaveAccrualPlan $leaveAccrualPlan): bool
{
return $user->can('force_delete_accrual::plan');
}
|
Determine whether the user can permanently delete.
|
forceDelete
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
MIT
|
public function forceDeleteAny(User $user): bool
{
return $user->can('force_delete_any_accrual::plan');
}
|
Determine whether the user can permanently bulk delete.
|
forceDeleteAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
MIT
|
public function restore(User $user, LeaveAccrualPlan $leaveAccrualPlan): bool
{
return $user->can('restore_accrual::plan');
}
|
Determine whether the user can restore.
|
restore
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
MIT
|
public function restoreAny(User $user): bool
{
return $user->can('restore_any_accrual::plan');
}
|
Determine whether the user can bulk restore.
|
restoreAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
MIT
|
public function replicate(User $user, LeaveAccrualPlan $leaveAccrualPlan): bool
{
return $user->can('replicate_accrual::plan');
}
|
Determine whether the user can replicate.
|
replicate
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
MIT
|
public function reorder(User $user): bool
{
return $user->can('reorder_accrual::plan');
}
|
Determine whether the user can reorder.
|
reorder
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAccrualPlanPolicy.php
|
MIT
|
public function viewAny(User $user): bool
{
return $user->can('view_any_my::allocation');
}
|
Determine whether the user can view any models.
|
viewAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
MIT
|
public function view(User $user, LeaveAllocation $leaveAllocation): bool
{
return $user->can('view_my::allocation');
}
|
Determine whether the user can view the model.
|
view
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
MIT
|
public function create(User $user): bool
{
return $user->can('create_my::allocation');
}
|
Determine whether the user can create models.
|
create
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
MIT
|
public function update(User $user, LeaveAllocation $leaveAllocation): bool
{
return $user->can('update_my::allocation');
}
|
Determine whether the user can update the model.
|
update
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
MIT
|
public function delete(User $user, LeaveAllocation $leaveAllocation): bool
{
return $user->can('delete_my::allocation');
}
|
Determine whether the user can delete the model.
|
delete
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
MIT
|
public function deleteAny(User $user): bool
{
return $user->can('delete_any_my::allocation');
}
|
Determine whether the user can bulk delete.
|
deleteAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
MIT
|
public function forceDelete(User $user, LeaveAllocation $leaveAllocation): bool
{
return $user->can('force_delete_my::allocation');
}
|
Determine whether the user can permanently delete.
|
forceDelete
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
MIT
|
public function forceDeleteAny(User $user): bool
{
return $user->can('force_delete_any_my::allocation');
}
|
Determine whether the user can permanently bulk delete.
|
forceDeleteAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
MIT
|
public function restore(User $user, LeaveAllocation $leaveAllocation): bool
{
return $user->can('restore_my::allocation');
}
|
Determine whether the user can restore.
|
restore
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
MIT
|
public function restoreAny(User $user): bool
{
return $user->can('restore_any_my::allocation');
}
|
Determine whether the user can bulk restore.
|
restoreAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
MIT
|
public function replicate(User $user, LeaveAllocation $leaveAllocation): bool
{
return $user->can('replicate_my::allocation');
}
|
Determine whether the user can replicate.
|
replicate
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
MIT
|
public function reorder(User $user): bool
{
return $user->can('reorder_my::allocation');
}
|
Determine whether the user can reorder.
|
reorder
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveAllocationPolicy.php
|
MIT
|
public function viewAny(User $user): bool
{
return $user->can('view_any_mandatory::day');
}
|
Determine whether the user can view any models.
|
viewAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
MIT
|
public function view(User $user, LeaveMandatoryDay $leaveMandatoryDay): bool
{
return $user->can('view_mandatory::day');
}
|
Determine whether the user can view the model.
|
view
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
MIT
|
public function create(User $user): bool
{
return $user->can('create_mandatory::day');
}
|
Determine whether the user can create models.
|
create
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
MIT
|
public function update(User $user, LeaveMandatoryDay $leaveMandatoryDay): bool
{
return $user->can('update_mandatory::day');
}
|
Determine whether the user can update the model.
|
update
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
MIT
|
public function delete(User $user, LeaveMandatoryDay $leaveMandatoryDay): bool
{
return $user->can('delete_mandatory::day');
}
|
Determine whether the user can delete the model.
|
delete
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
MIT
|
public function deleteAny(User $user): bool
{
return $user->can('delete_any_mandatory::day');
}
|
Determine whether the user can bulk delete.
|
deleteAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
MIT
|
public function forceDelete(User $user, LeaveMandatoryDay $leaveMandatoryDay): bool
{
return $user->can('force_delete_mandatory::day');
}
|
Determine whether the user can permanently delete.
|
forceDelete
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
MIT
|
public function forceDeleteAny(User $user): bool
{
return $user->can('force_delete_any_mandatory::day');
}
|
Determine whether the user can permanently bulk delete.
|
forceDeleteAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
MIT
|
public function restore(User $user, LeaveMandatoryDay $leaveMandatoryDay): bool
{
return $user->can('restore_mandatory::day');
}
|
Determine whether the user can restore.
|
restore
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
MIT
|
public function restoreAny(User $user): bool
{
return $user->can('restore_any_mandatory::day');
}
|
Determine whether the user can bulk restore.
|
restoreAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
MIT
|
public function replicate(User $user, LeaveMandatoryDay $leaveMandatoryDay): bool
{
return $user->can('replicate_mandatory::day');
}
|
Determine whether the user can replicate.
|
replicate
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
MIT
|
public function reorder(User $user): bool
{
return $user->can('reorder_mandatory::day');
}
|
Determine whether the user can reorder.
|
reorder
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveMandatoryDayPolicy.php
|
MIT
|
public function viewAny(User $user): bool
{
return $user->can('view_any_time::off');
}
|
Determine whether the user can view any models.
|
viewAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
MIT
|
public function view(User $user, Leave $leave): bool
{
return $user->can('view_time::off');
}
|
Determine whether the user can view the model.
|
view
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
MIT
|
public function create(User $user): bool
{
return $user->can('create_time::off');
}
|
Determine whether the user can create models.
|
create
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
MIT
|
public function update(User $user, Leave $leave): bool
{
if (! $user->can('update_time::off')) {
return false;
}
return $this->hasAccess($user, $leave, 'employee');
}
|
Determine whether the user can update the model.
|
update
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
MIT
|
public function delete(User $user, Leave $leave): bool
{
if (! $user->can('delete_time::off')) {
return false;
}
return $this->hasAccess($user, $leave, 'employee');
}
|
Determine whether the user can delete the model.
|
delete
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
MIT
|
public function deleteAny(User $user): bool
{
return $user->can('delete_any_time::off');
}
|
Determine whether the user can bulk delete.
|
deleteAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
MIT
|
public function forceDelete(User $user, Leave $leave): bool
{
if (! $user->can('force_delete_time::off')) {
return false;
}
return $this->hasAccess($user, $leave, 'employee');
}
|
Determine whether the user can permanently delete.
|
forceDelete
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
MIT
|
public function forceDeleteAny(User $user): bool
{
return $user->can('force_delete_any_time::off');
}
|
Determine whether the user can permanently bulk delete.
|
forceDeleteAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
MIT
|
public function restore(User $user, Leave $leave): bool
{
if (! $user->can('restore_time::off')) {
return false;
}
return $this->hasAccess($user, $leave, 'employee');
}
|
Determine whether the user can restore.
|
restore
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
MIT
|
public function restoreAny(User $user): bool
{
return $user->can('restore_any_time::off');
}
|
Determine whether the user can bulk restore.
|
restoreAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
MIT
|
public function replicate(User $user, Leave $leave): bool
{
if (! $user->can('replicate_time::off')) {
return false;
}
return $this->hasAccess($user, $leave, 'employee');
}
|
Determine whether the user can replicate.
|
replicate
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
MIT
|
public function reorder(User $user): bool
{
return $user->can('reorder_time::off');
}
|
Determine whether the user can reorder.
|
reorder
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeavePolicy.php
|
MIT
|
public function viewAny(User $user): bool
{
return $user->can('view_any_leave::type');
}
|
Determine whether the user can view any models.
|
viewAny
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveTypePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveTypePolicy.php
|
MIT
|
public function view(User $user, LeaveType $leaveType): bool
{
return $user->can('view_leave::type');
}
|
Determine whether the user can view the model.
|
view
|
php
|
aureuserp/aureuserp
|
plugins/webkul/time-off/src/Policies/LeaveTypePolicy.php
|
https://github.com/aureuserp/aureuserp/blob/master/plugins/webkul/time-off/src/Policies/LeaveTypePolicy.php
|
MIT
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.