Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
There should be something like this if models and relays are configured
Model::with('relation_to_other_model', function($query) {
$query->orderBy('some_field', 'desc')->take(1);
})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question