12345678910111213141516171819202122232425262728 |
- <?php
- namespace App\Repositories;
- use App\Models\AdCategory;
- use Prettus\Repository\Eloquent\BaseRepository;
- /**
- * Class AdCategoryRepositoryEloquent.
- *
- * @package namespace App\Repositories;
- */
- class AdCategoryRepository extends BaseRepository
- {
- public function model()
- {
- return AdCategory::class;
- }
- public function getAdCategorys($where)
- {
- //return $this->model->with(['ads'])->where($where)->orderBy('id', 'desc')->get();
- //return $this->model->with(['ads'])->where($where)->orderBy('id', 'desc');
- //return $this->model->with(['ads'])->where($where)->orderBy('id', 'desc')->first();
- }
- }
|