@@ -42,12 +42,12 @@ |
||
| 42 | 42 | public function scopeVisible($query) |
| 43 | 43 | { |
| 44 | 44 | if ($this->isFillable('publish_start_date')) { |
| 45 | - $query->where(function ($query) { |
|
| 45 | + $query->where(function($query) { |
|
| 46 | 46 | $query->whereNull("{$this->getTable()}.publish_start_date")->orWhere("{$this->getTable()}.publish_start_date", '<=', Carbon::now()); |
| 47 | 47 | }); |
| 48 | 48 | |
| 49 | 49 | if ($this->isFillable('publish_end_date')) { |
| 50 | - $query->where(function ($query) { |
|
| 50 | + $query->where(function($query) { |
|
| 51 | 51 | $query->whereNull("{$this->getTable()}.publish_end_date")->orWhere("{$this->getTable()}.publish_end_date", '>=', Carbon::now()); |
| 52 | 52 | }); |
| 53 | 53 | } |