$this->post->comments->sortByDesc('created_at'), ])->title("Post {$this->post->id}"); } public function postComment() { $this->validate(); $user = Auth::user(); if ($comment = PostComment::create(['message' => $this->message])) { $this->post->comments()->save($comment); $user->comments()->save($comment); } return $this->redirect("/posts/{$this->post->id}"); } }