Answer the question
In order to leave comments, you need to log in
Undefined column: 7 ERROR: column "email" does not exist - Laravel 5.4 validation "unique" with PostgreSQL?
Validation field:
'email' => 'required|filled|string|email|max:125|unique:pgsql.public.users, email',
class User extends Authenticatable
{
use Notifiable, SoftDeletes;
protected $table = "pqsql.public.users";
QueryException in Connection.php line 647:
SQLSTATE[42703]: Undefined column: 7 ERROR: column " email" does not exist
LINE 1: ...count(*) as aggregate from "public"."users" where " email" =...
^
HINT: Perhaps you meant to reference the column "users.email". (SQL: select count(*) as aggregate from "public"."users" where " email" = [email protected])
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question