I am new to Laravel my self, but I think sending mail first and then returning the view might help.
All sorted! Thanks for the suggestion, worked out great!
I had to alter a few lines for referencing controllers and such though
<?php
namespace App\Http\Controllers;
use Auth;
use Image;
use App\User;
use App\Mail\Success;
use Illuminate\Http\Request;
use Mail;
class SuccessController extends Controller
{
public function index() {
$user = Auth::user();
Mail::to($user)->send(new Success($user));
return view('pages.success');
}
}
Thanks again! :D
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community