change
Auth::login($customer);
in to
Auth::loginUsingId($customer->id);
Nope! Cheers though. I had actually tried the loginUsingId with the value of the newly created customer id but with no luck previously. :(
It would appear I was being a lemon! I had initially created both sites using the same version of Laravel and updated it via composer as I went along, however, I had failed to update the actual User model on the front-end site.
So all sorted now. Cheers for the suggestion though eriktisme, it's nice to get a reply. :)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community