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