src/Concerns/InteractsWithAuthentication.php
protected function hasCredentials(array $credentials, $guard = null)
    {
        $provider = $this->app->make('auth')->guard($guard)->getProvider();

        $user = $provider->retrieveByCredentials($credentials);

        return $user && $provider->validateCredentials($user, $credentials);
    }
protected function hasCredentials(array $credentials, $guard = null)
    {
        $provider = $this->app->make('auth')->guard($guard)->getProvider();

        $user = $provider->retrieveByCredentials($credentials);

        return $user && $provider->validateCredentials($user, $credentials);
    }
protected function hasCredentials ( array $ credentials , $ guard = null ) { $ provider = $ this -> app -> make ( 'auth' ) -> guard ( $ guard ) -> getProvider ( ) ; $ user = $ provider -> retrieveByCredentials ( $ credentials ) ; return $ user && $ provider -> validateCredentials ( $ user , $ credentials ) ; }
Return true is the credentials are valid, false otherwise.

@param  array  $credentials
@param  string|null  $guard
@return bool
Return true is the credentials are valid false otherwise .