$posts = Post::where('read_time', '>', 8) ->get(); dd($posts);
Instead of dd the result like above, you can chain the collection with "dd()" at the end of the collection query. By doing so the code is much more expressive and straight forward.
$posts = Post::where('read_time', '>', 8) ->get() ->dd();
Leave a reply