Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

Marwelln said:

This is the file you are looking for: https://github.com/laravel/framework/blob/4.2/src/Illuminate/Database/Eloquent/Model.php

Thanks to your reply,but in the file,can't find the method - "where" . example: ModelName::where(); How can i to see the source of the method "where"?

Last updated 2 years ago.
0

And the laravel model how to autoload "Illuminate/Database/Eloquent/Model.php"?

Last updated 2 years ago.
0

Eloquent extends the Query Builder - so the where function is defined here: https://github.com/laravel/framework/blob/4.2/src/Illuminate/Database/Query/Builder.php#L373

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

flash866 flash866 Joined 29 Aug 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.