Файловый менеджер - Редактировать - /home/clickysoft/public_html/somni.clickysoft.net/app/Repositories/AdRepository.php
Назад
<?php namespace App\Repositories; use App\Interfaces\AdRepositoryInterface; use App\Models\Property; use App\Models\Unit; use App\Models\User; use App\Models\City; use App\Models\Ad; use App\Models\Event; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Str; class AdRepository implements AdRepositoryInterface { public function getLatestBoxAdsLandlord(){ return Ad::where('role','Landlord')->latest()->limit(2)->get(); } public function getSingleAddLatestLandlord(){ return Ad::where('role','Landlord')->latest()->first(); } public function getLatestBoxAdsTenant(){ return Ad::where('role','Tenant')->latest()->limit(2)->get(); } public function getSingleAddLatestTenant(){ return Ad::where('role','Tenant')->latest()->first(); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка