Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add FileCheck #29

Merged
merged 2 commits into from
Sep 22, 2023
Merged

add FileCheck #29

merged 2 commits into from
Sep 22, 2023

Conversation

david-d-h
Copy link
Contributor

This PR adds the FileCheck, as the name suggests, it will check if the configured files exist. It can be configured like this

OK::checks([
    FileCheck::config()
        ->files([
            'routes/web.php',
            'routes/api.php',
        ]),
]);

If a configured path starts with / it will be relative to the root of the filesystem. Otherwise it will be relative to the root of your project (via the base_path() helper in Laravel).

@david-d-h david-d-h self-assigned this Sep 22, 2023
@david-d-h david-d-h added the enhancement New feature or request label Sep 22, 2023
@markvaneijk markvaneijk merged commit 7449c31 into main Sep 22, 2023
@markvaneijk markvaneijk deleted the feature/file-check branch September 22, 2023 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants