'boolean', 'edited_at' => 'datetime', ]; /** * Get the topic that owns the post. */ public function topic() { return $this->belongsTo(ForumTopic::class, 'topic_id'); } /** * Get the user that owns the post. */ public function user() { return $this->belongsTo(User::class); } }