Skip to content
Advertisement

Can’t find my Mailable class from Route::get

I’m getting this error in Laravel while trying to get from route method. My error is:

Symfony Component Debug Exception FatalThrowableError

(E_ERROR) Class ‘NewUserWelcomeMail’ not found

My route method is:

JavaScript

NewUserWelcomeMail class code is:

JavaScript

I tried this as this video said but don’t understand why my one is not working as all rest are working fine. Video time from 4:13:00.

Advertisement

Answer

You need to specify the namespace. Change your route code to the following:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement