Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
taylorotwell merged 1 commit into
laravel:5.2from
themsaid:validate-file
Apr 29, 2016
Merged

[5.2] Added a "file" validation rule#13371
taylorotwell merged 1 commit into
laravel:5.2from
themsaid:validate-file

Conversation

@themsaid
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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