Abazzi
1 week ago

Error when Inserting Data

Posted 1 week ago by Abazzi

I'm getting an error when registering a user, I changed the default name for the users table to 'employees' but laravel expects a junction table called 'role_user'.

Here's the error: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'salon.role_user' doesn't exist (SQL: insert into role_user (created_at, role_id, updated_at, user_id) values (2020-03-26 15:11:48, 1, 2020-03-26 15:11:48, 1))

Please sign in or create an account to participate in this conversation.