get('include'); } catch (NotFoundExceptionInterface|ContainerExceptionInterface $e) { return false; } if (! $param) { return false; } $includeValues = explode(',', Str::lower($param)); if (is_array($relationships)) { foreach ($relationships as $relationship) { if (in_array(Str::lower($relationship), $includeValues)) { return true; } } return false; } return in_array(Str::lower($relationships), $includeValues); } }