public function __construct(User $user, Post $post) { $this->user = $user; $this->post = $post; $this->time = Carbon::now(); }