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

[5.2] Added a "file" validation rule #13371

Merged
merged 1 commit into from
Apr 29, 2016
Merged

[5.2] Added a "file" validation rule #13371

merged 1 commit into from
Apr 29, 2016

Conversation

themsaid
Copy link
Member

As requested here #13301

The new rule checks if the given value is a valid file.

@taylorotwell taylorotwell merged commit 34c8b93 into laravel:5.2 Apr 29, 2016
@taylorotwell
Copy link
Member

Updated to just:

    protected function validateFile($attribute, $value)
    {
        return $this->isAValidFileInstance($value);
    }

@themsaid themsaid deleted the validate-file branch April 29, 2016 14:17
@themsaid
Copy link
Member Author

I should have done it that way, I wonder why I did not! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants