-
app/Models/Company/CompanyCalendar.php
Open in GitHubuse Illuminate\Database\Eloquent\Model; class CompanyCalendar extends Model { // protected $casts = [ 'is_worked' => 'boolean', ]; // }
-
app/Services/Company/Adminland/CompanyPTOPolicy/UpdateCompanyPTOPolicy.php
Open in GitHubuse App\Services\BaseService; use App\Models\Company\CompanyCalendar; class UpdateCompanyPTOPolicy extends BaseService { // private function markDaysOff(array $data): int { // CompanyCalendar::where('id', $companyCalendar->id)->update([ 'is_worked' => $change['is_worked'], ]); // } }