File manager - Edit - /home/linknsbh/cecil-hotel.net/platform/plugins/hotel/src/Repositories/Eloquent/PlaceRepository.php
Back
<?php namespace Botble\Hotel\Repositories\Eloquent; use Botble\Hotel\Repositories\Interfaces\PlaceInterface; use Botble\Support\Repositories\Eloquent\RepositoriesAbstract; class PlaceRepository extends RepositoriesAbstract implements PlaceInterface { public function getRelatedPlaces(int $placeId, $limit = 3) { $this->model = $this->originalModel; $this->model = $this->model ->where('id', '<>', $placeId); $params = [ 'condition' => [], 'order_by' => [ 'created_at' => 'DESC', ], 'take' => $limit, 'paginate' => [ 'per_page' => 12, 'current_paged' => 1, ], 'with' => [ 'slugable', ], ]; return $this->advancedGet($params); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.54 |
proxy
|
phpinfo
|
Settings