Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Laravel 8) After following installation instructions, I get "Method Illuminate\Validation\Validator::validateMailgun does not exist." #12

Open
titizali opened this issue Apr 8, 2021 · 0 comments

Comments

@titizali
Copy link

titizali commented Apr 8, 2021

Hi! Thanks for making this package available for everyone! I am so psyched to use it in production!

I am having some trouble getting it going, though :( I tried clearing all cache with no luck so far :/ Also added the service provider manually to config/app.php just in case. Any idea what's going on? Am I supposed to include something on my RegisterController? Here is the relevant code from RegisterController--I'm not using form requests. Thank you so much!

 $validator = Validator::make($request->all(), [
               'name' => 'required|string|max:255',
               'email' => 'required|string|email|max:255|unique:users|mailgun',
               'password' => 'required|string|min:8|confirmed',
               'terms'=>'accepted',
           ], $messages);
        if ($validator->fails()) {
            if ($validator->errors()->first('email') == $uniqueMsg) {
                return redirect()->to('/login')
                    ->withErrors($validator)
                    ->withInput();
            } else {
                return redirect()->to('/register')
                    ->withErrors($validator)
                    ->withInput();
            }
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant