|
...
|
...
|
@@ -65,6 +65,9 @@ class BlogController extends BaseController |
|
|
|
if(isset($this->map['status'])){
|
|
|
|
$query = $query->where('status',$this->map['status']);
|
|
|
|
}
|
|
|
|
if(isset($this->map['name']) && !empty($this->map['name'])){
|
|
|
|
$query = $query->where('name','like','%'.$this->map['name'].'%');
|
|
|
|
}
|
|
|
|
if(!empty($this->map['start_at']) && !empty($this->map['end_at'])){
|
|
|
|
$query->whereBetween('created_at', [$this->map['start_at'],$this->map['end_at']]);
|
|
|
|
}
|
...
|
...
|
|