Skip to content
Discussion options

You must be logged in to vote

I was able to solve this but would be good to have something in the docs about it.

// In the model
    public function imagesInvite(): MorphToMany
    {
        return $this->attachment('exposition-invite');
    }

// In the screen query() method
$this->exposition->load('imagesInvite');


// In the layout
            Upload::make('exposition.imagesInvite')
                ->title('Invites')
                ->groups('exposition-invite')

The name of input upload should match the data from model, in my case exposition.imagesInvite

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@tabuna
Comment options

@thewebartisan7
Comment options

Answer selected by thewebartisan7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants