| 1234567891011121314151617181920212223242526272829303132333435 | 
							- <?php
 
- namespace App\Repositories;
 
- use App\Models\ArticleProperty;
 
- use Prettus\Repository\Eloquent\BaseRepository;
 
- /**
 
-  * Class ArticlePropertyReoositoryEloquent.
 
-  *
 
-  * @package namespace App\Repositories;
 
-  */
 
- class ArticlePropertyReoository extends BaseRepository
 
- {
 
-     /**
 
-      * Specify Model class name
 
-      *
 
-      * @return string
 
-      */
 
-     public function model()
 
-     {
 
-         return ArticleProperty::class;
 
-     }
 
-     /**
 
-      * @param $where array
 
-      * @return null|\Illuminate\Database\Eloquent\Model
 
-      */
 
-     public function getProperty($where)
 
-     {
 
-         return $this->model->where($where)->orderBy('list_order', 'desc')->orderBy('created_at', 'desc')->first();
 
-     }
 
- }
 
 
  |