/** * Function to return a boolean value indicating whether * the provided status is matched by the configured setting. * * Currently supports: * * @param $option * @param $status * * @return bool */ protected function matchesStatus($option, $status) { $configValue = Config::get($option); if (is_array($configValue)) { return Config::contains($option, $status); } return Str::is($configValue, $status); }