I want to get the first related model. But this works only for the first model in the collection. The 2nd is empty. 

I've found [this](https://stackoverflow.com/questions/26003841/laravel-hasmany-with-take-only-working-on-first-result) answer, but I didn't find a solution.

How can I only get the first related model?

```
$querybuilder->with([
    'messages' => function ($query) {
        $query->orderBy("created_at", "DESC");
        $query->limit(1);
    }
]);

```