1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace App\Repositories;
- use App\Models\ArticleProperty;
- use Prettus\Repository\Eloquent\BaseRepository;
- class ArticlePropertyReoository extends BaseRepository
- {
-
- public function model()
- {
- return ArticleProperty::class;
- }
-
- public function getProperty($where)
- {
- return $this->model->where($where)->orderBy('list_order', 'desc')->orderBy('created_at', 'desc')->first();
- }
- }
|