Created
June 8, 2016 20:23
-
-
Save Mulkave/4c58946c074e7ab87b0d71aed3e9ec5c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Foundation; | |
class Validation | |
{ | |
public function make(array $data, array $rules, array $messages = [], array $customAttributes = []) | |
{ | |
return $this->getValidationFactory()->make($data, $rules, $messages, $customAttributes); | |
} | |
public function getValidationFactory() | |
{ | |
return app('Illuminate\Contracts\Validation\Factory'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment