Файловый менеджер - Редактировать - /home/clickysoft/public_html/travel-guru.clickysoft.net/app/Repositories/AppointmentRepository.php
Назад
<?php namespace App\Repositories; use App\Interfaces\AppointmentRepositoryInterface; use App\Models\Appointment; use Illuminate\Support\Collection; class AppointmentRepository implements AppointmentRepositoryInterface { public function getAppointments($authUserId, $days): Collection { return Appointment::with('timeSlot', 'user') ->where('user_id', $authUserId) ->whereBetween('date', [$days[0]->startOfDay(), $days[count($days) - 1]->endOfDay()]) ->orderBy('date') ->orderBy('time_slot_id') ->get(); } public function getAppointmentsAgent($authUserId, $days): Collection { return Appointment::with('timeSlot', 'user') ->where('agent_id', $authUserId) ->whereBetween('date', [$days[0]->startOfDay(), $days[count($days) - 1]->endOfDay()]) ->orderBy('date') ->orderBy('time_slot_id') ->get(); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка