This documentation is bogus https://laravel.com/docs/9.x/mail
I'm running v 9.34.0 and if I follow these instructions it doesn't work. The build() function is still required in the mailable class and it won't work without it.
And the new (ugly) markdown template doesn't work:
Unable to locate a class or view for component [mail::message].
If I follow the instructions for v6 it works.
Hello @valentino-emirlike
For Laravel bugs you should report them in: https://github.com/laravel/framework/issues/
I see this issue: https://github.com/laravel/framework/issues/44544 and it looks like the mail:message error is fixed in 9.34.1
About the build function, is that something that isn't in the generated class?
in the documentation they don't mention the build class. Instead they use the content() and envelop() classes
Follow this example, hope it can help you. How To Send Email In Laravel 9 Using Markdown Mailables?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community