Relationship manager modal not opening

Hi all,

I've got a relationship manager which does not open the modal when I try to add a new or existing relationship. There are no JS errors, and the livewire equest/response look OK, as attached.

The app works in local, not in production. I've done artisan optimize, rebuild npm, restarted octane.

I've enabled debug logging, and debugbar.

I've put cloudflare into development mode to prevent caching.

All with no change.

Anyone seen this before?


The relationship manager is:

class ActivitiesRelationManager extends RelationManager
{
    protected static string $relationship = 'activities';

    protected static ?string $title = 'Activities';

    protected static ?string $recordTitleAttribute = 'name';

    protected static ?string $inverseRelationship = 'checklists';

    public function form(Form $form): Form
    {
        return $form
            ->schema([
                TextInput::make('name')
                    ->required()
                    ->maxLength(255),
                TextInput::make("description")
                    ->helperText("Do not enter credentials or sensitive information here."),
                TextInput::make("url")
                    ->label("URL"),
            ]);
    }

    public function table(Table $table): Table
    {
        ...
    }
}
image.png
Solution
Still nothing obvious. Went for the "big red button" approach: rm -rf vendor && composer install. That fixed it.

Coding is 50% intelligence. 50% copy-pasting. And 50%: "Huh. Didn't think that would work"
Was this page helpful?