Where is $this->model->hydrate defined ? #48253
-
I am probably going to look stupid or something but I can't find where that method is defined... I am tracking what could be a bug (trying to extend an existing Model like in this article of Caleb Porzio in order to better separate concerns). I have tracked down my problem down to this line of code in Illuminate\Database\Eloquent\Builder which apparently makes the application die : I would appreciate any help about that... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hello @felahdab, It's defined in the Builder class src/Illuminate/Database/Eloquent/Builder.php. My way to navigate through the framework source code is by using PHPStorm. and |
Beta Was this translation helpful? Give feedback.
The model has a forward call proxy that passes some calls to the QueryBuilder class. hence the hydrate method is accessable trough the model instance
framework/src/Illuminate/Database/Eloquent/Model.php
Line 2333 in 4989e6d