How to attach and detach a relation in case there were values - Filament