I have a table 'user_temps' which contains the new user until they confirmed their subscription. Once done, i copy the user to the 'users' table.
In the registration form i have this validation params :
'email' => 'required|email|max:255|unique:user_temps|unique:users',
The problem is there I need to have 2 different messages : if the user is in the 'user_temps' table and another one if the user is in the 'users' table.
Thank you
To simplify things, could you not do the following:
In your user's table, have a boolean column named 'subscribed' defaulted to 0. Then when they've confirmed their subscription you could set it to 1?
Then, upon authentication, you can run this check: