For a static call to get the builder:
$builder = Model::query();
If you have a model instance:
$builder = $model->newQuery();
Model@query
is just creating a new instance of the model and returning the call to newQuery()
.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community