Question: I would like to layout DIV tiles as in file managers. Without any reordering, strightly from left to right then from top to bottom. Automatically wrapping by the width of window.

[![enter image description here](https://i.stack.imgur.com/8cJKy.png)](https://i.stack.imgur.com/8cJKy.png)

How to do that? Any libraries appreciated.

Can Masonry do this? I don't need it to think where to fit next tile!

Answer: 
I think you can try this

```
$query = Post::withCount('comments')
    ->withTrashed()
    ->get();

```

**OR**

```
$query = DB::table('post')
         ->select('comments', DB::raw('count(*) as comments'))
         ->get();

```

Hope this work for you!
You can use the withTrashed method: 

```
>withTrashed()

```