Support the ongoing development of Laravel.io →
Authentication Security
Last updated 1 year ago.
0

change

 Auth::login($customer);

in to

Auth::loginUsingId($customer->id);
Last updated 1 year ago.
0

Nope! Cheers though. I had actually tried the loginUsingId with the value of the newly created customer id but with no luck previously. :(

Last updated 1 year ago.
0

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. :)

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

thevincent thevincent Joined 11 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.