| @@ 205-212 (lines=8) @@ | ||
| 202 | ||
| 203 | // ---- Query scopes ---- |
|
| 204 | ||
| 205 | public function scopeIsUp($query) |
|
| 206 | { |
|
| 207 | return $query->where([ |
|
| 208 | ['status', '=', 1], |
|
| 209 | ['ignore', '=', 0], |
|
| 210 | ['disabled', '=', 0] |
|
| 211 | ]); |
|
| 212 | } |
|
| 213 | ||
| 214 | public function scopeIsDown($query) |
|
| 215 | { |
|
| @@ 214-221 (lines=8) @@ | ||
| 211 | ]); |
|
| 212 | } |
|
| 213 | ||
| 214 | public function scopeIsDown($query) |
|
| 215 | { |
|
| 216 | return $query->where([ |
|
| 217 | ['status', '=', 0], |
|
| 218 | ['ignore', '=', 0], |
|
| 219 | ['disabled', '=', 0] |
|
| 220 | ]); |
|
| 221 | } |
|
| 222 | ||
| 223 | public function scopeIsIgnored($query) |
|
| 224 | { |
|