I have two tables posts and comments and I get all comments under the one post by using
public function post(Post $post)
return view('content', compact('post'));
How can I order comments using orderBy or another way.
Please sign in or create an account to participate in this conversation.
Use Markdown with
GitHub-flavored code blocks.
There's no shortage of content at Laracasts. In fact, you could watch nonstop
for days upon days, and still not see everything!