PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Solved

Route [voyager.contact.index] not defined.

Solved
cyberekklesia

Oct 13th, 2022 07:17 PM

Hey Bobby!

I'm following your post from 2019: Contact Form with Voyager and Laravel (https://devdojo.com/bobbyiliev/contact-form-with-voyager-and-laravel) with no success. At the end of step 1, the submit button, the process gives me an error - Route [voyager.contact.index] not defined. For more info, visit the link for more information- https://flareapp.io/share/NPLjw1Q5#F64

Anyways, this process database menu kept giving me the same error. So, after running optimize:clear and optimize it worked again. So, I continue with your contact post until completed. Note: I notice that the Contact.php was created at app and not at app/Models.

At the last part, I couldn't complete the test because of another error: Target class [ContactController] does not exist. Here is the link for more info - https://flareapp.io/share/x7K9w2Zm#F35

Please, let me know if you have a tutorial of creating a contact form with wave.

I couldn't win any today... Time to step away and relax.

bobbyiliev

Oct 14th, 2022 01:01 AM

Best Answer

Hey!

Ah yes, that is quite an outdated tutorial. I have to update it with the latest changes from Voyager and Wave.

But what I could suggest is to follow this tutorial here by @thinkverse which uses Livewire and follows the best practices in terms of migrations and using Mailable classes:

How to create a Contact Us form with Livewire. 👋

Let me know how it goes!

Report
1
cyberekklesia

Oct 18th, 2022 04:48 PM

The notification part didn't work as expected, but at least I'm getting the messages.

Thank you for the tutorial.

Report
1