Dingo\Api\Routing\Helpers::authenticateWith PHP Method

authenticateWith() protected method

Authenticate with certain providers on controller methods.
protected authenticateWith ( string | array $providers, array $options = [] ) : void
$providers string | array
$options array
return void
    protected function authenticateWith($providers, array $options = [])
    {
        $providers = $this->getPropertyValue($providers);
        $this->authenticationProviders[] = compact('providers', 'options');
    }