belongsTo(Category::class); } public function author() { return $this->belongsTo(User::class); } public function questions() { return $this->belongsToMany(Question::class) ->withTimestamps(); } }