@@ 266-271 (lines=6) @@ | ||
263 | return $this; |
|
264 | } |
|
265 | ||
266 | if (starts_with($name, 'findBy') && $column = snake_case(substr($name, 6))) { |
|
267 | ||
268 | call_user_func_array([$this->query, 'where'], array_merge([$column], $arguments)); |
|
269 | ||
270 | return $this->first(); |
|
271 | } |
|
272 | ||
273 | if (starts_with($name, 'where') && $column = snake_case(substr($name, 5))) { |
|
274 | ||
@@ 273-277 (lines=5) @@ | ||
270 | return $this->first(); |
|
271 | } |
|
272 | ||
273 | if (starts_with($name, 'where') && $column = snake_case(substr($name, 5))) { |
|
274 | ||
275 | call_user_func_array([$this->query, 'where'], array_merge([$column], $arguments)); |
|
276 | ||
277 | return $this; |
|
278 | } |
|
279 | ||
280 | return $this; |