@@ 186-191 (lines=6) @@ | ||
183 | return $this; |
|
184 | } |
|
185 | ||
186 | if (starts_with($name, 'findBy') && $column = snake_case(substr($name, 6))) { |
|
187 | ||
188 | call_user_func_array([$this->query, 'where'], array_merge([$column], $arguments)); |
|
189 | ||
190 | return $this->first(); |
|
191 | } |
|
192 | ||
193 | if (starts_with($name, 'where') && $column = snake_case(substr($name, 5))) { |
|
194 | call_user_func_array([$this->query, 'where'], array_merge([$column], $arguments)); |
|
@@ 193-197 (lines=5) @@ | ||
190 | return $this->first(); |
|
191 | } |
|
192 | ||
193 | if (starts_with($name, 'where') && $column = snake_case(substr($name, 5))) { |
|
194 | call_user_func_array([$this->query, 'where'], array_merge([$column], $arguments)); |
|
195 | ||
196 | return $this; |
|
197 | } |
|
198 | ||
199 | return $this; |
|
200 | } |