FilamentF
Filament17mo ago
kisut

Relation Manager section didn't show up

Hi,

I created a belongsToMany relation between two models with this setting.

Track Model
public function releases()
    {
        return $this->belongsToMany(Release::class);
    }


Release Model
public function trackAlbum()
    {
        return $this->belongsToMany(Track::class, 'album_track', 'release_id', 'track_id');
    }


and I created a relation manager with commands like this
php artisan make:filament-relation-manager ReleaseResource trackAlbum track_title


I have registered the relation in Release resource but the section relation under the form is not showing up. Is there a mistake?
Was this page helpful?