jeudi 21 juillet 2022

'View [] not found' only with Laravel Command

I have an application which has a command scheduled to run every minute to update catalogs status and it should send an email upon a new book being found, somehow when the mailer sends the email it triggers the 'View not found'.

The Laravel Command has a function that calls another function in a controller. However when a route is made pointing to the same controller it works fine i.e sends an email.

It is only when the controller func is called from the Command that it doesn't find the email template view file.

The view file is present as it runs correctly when the route is used.

Any idea what amendments I need in my command?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/8SdnjV7
via IFTTT

Aucun commentaire:

Enregistrer un commentaire