belongsTo(User::class, 'user_id'); } public function publications(): HasMany { return $this->hasMany(Publication::class); } }