fisayoafolayan / laravel-multiple-auth

A simple implementation of multiple authentication in Laravel. To follow along, this application has been documented as an article on Pusher blog.
81 stars 60 forks source link

Validations not working with this for normal user login #6

Open kaustubh-ws-wj opened 4 years ago

simphiwehlabisa commented 4 years ago

in the login controller action do this when the following if auth::guard fails don't forget to import the validationexception

throw ValidationException::withMessages([ $this->username() => [trans('auth.failed')], ]);