I'm using Laravel. I deleted the email field from the users table, then I created a separate table for emails. But when I try to send a password reset link using Laravel's built in authentication system, I got an error: Laravel can't find the email field in the users table.
Now I have to make it access the email from my new emails table, but I don't know how.
This is the error:
Illuminate\Database\QueryException SQLSTATE[42S22]: Column not found: 1054 Unknown column 'email' in 'where clause' (SQL: select * from users where email = user1@yahoo.com limit 1)