public function getEnabledInArea(AreaContract $area)
    {
        $providers = $this->providers->filterByArea($area->getId());

        foreach ($providers as $provider) {
            if ($provider->isEnabled()) {
                return $provider;
            }
        }

        return null;
    }
public function getEnabledInArea(AreaContract $area)
    {
        $providers = $this->providers->filterByArea($area->getId());

        foreach ($providers as $provider) {
            if ($provider->isEnabled()) {
                return $provider;
            }
        }

        return null;
    }
public function getEnabledInArea ( AreaContract $ area ) { $ providers = $ this -> providers -> filterByArea ( $ area -> getId ( ) ) ; foreach ( $ providers as $ provider ) { if ( $ provider -> isEnabled ( ) ) { return $ provider ; } } return null ; }
Returns the enabled provider for the given area.

@param AreaContract $area
@return Provider | null
Returns the enabled provider for the given area .