I know the title seems familiar but hear me out...
My code works locally when I try to send out an invoice via email and the email gets sent. However, I deployed the same code to production on ec2 and got this error;
My controller looks like this...
public function invoice_send(Request $request, Invoice $invoice)
{
Mail::to($request->to)->queue(new NewInvoice($invoice, $request));
return redirect()->route('invoice.show', $invoice);
}
The vendor folder is the only thing that is different between production and development servers so I deleted the vendor and run composer install
again but that didn't solve anything.
Any ideas?