Laravel Validation is unique/exists with different database connection

Laravel Validation is unique/exists with different database connection

·

1 min read

'email' => 'required|unique:mysql2.users'

Where mysql2 is the second database settings array in the database.php file