Skip to content

Fix register validation #290

Answered by maxonfjvipon
maxonfjvipon asked this question in Q&A
Discussion options

You must be logged in to vote

Lol, found a solution in 5 minutes. Just added connection name to database, so rules now looks like:

 public function rules(): array
    {
        return [
            'name' => ['required', 'string', 'max:255'],
            'email' => ['required', 'email', 'string', 'max:255', 'unique:tenant.users,email'],
            'password' => ['required', 'confirmed', Rules\Password::defaults()]
        ];
    }

You may also check this one #154 (comment)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by maxonfjvipon
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants