Support the ongoing development of →
posted 4 months ago

Hi @marketopiateam

Why don't you create a new instance of the Design in the submit method instead of the mount method and assign it after saving it in the database?

    public function submit()

    // Assign the selected project and post IDs to the design instance
    $design = new Design;
    $design->project_id = $this->selectedProjectId;
    $design->post_id = $this->design->post_id;
    event(new DesignCreated($this->design));

    return redirect()->route('admin.designs.index');

Sign in to participate in this thread!


Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.