File manager - Edit - /home/linknsbh/cecil-hotel.net/platform/plugins/hotel/src/Repositories/Eloquent/BookingRepository.php
Back
<?php namespace Botble\Hotel\Repositories\Eloquent; use Botble\Hotel\Enums\BookingStatusEnum; use Botble\Hotel\Repositories\Interfaces\BookingInterface; use Botble\Support\Repositories\Eloquent\RepositoriesAbstract; class BookingRepository extends RepositoriesAbstract implements BookingInterface { public function getPendingBookings(array $select = ['*'], array $with = []) { $data = $this->model->where('status', BookingStatusEnum::PENDING) ->select($select) ->with($with) ->get(); $this->resetModel(); return $data; } public function countPendingBookings(): int { $data = $this->model->where('status', BookingStatusEnum::PENDING)->count(); $this->resetModel(); return $data; } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.54 |
proxy
|
phpinfo
|
Settings