Skip to content

Instantly share code, notes, and snippets.

@Mulkave
Created June 8, 2016 20:23
Show Gist options
  • Save Mulkave/4c58946c074e7ab87b0d71aed3e9ec5c to your computer and use it in GitHub Desktop.
Save Mulkave/4c58946c074e7ab87b0d71aed3e9ec5c to your computer and use it in GitHub Desktop.
<?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