Eloquent Validation for composite unique key
问题 I'm using Eloquent outside laravel framework from https://github.com/illuminate/database. The below is my composer file { "require": { "illuminate/database": "*", "illuminate/validation": "*", "dhorrigan/capsule": "*" } } And because of problem in Validator::make(). I'm using one of the suggested method in stackoverflow to use it like class Validator { protected static $factory; public static function instance() { if (!static::$factory) { $translator = new Symfony\Component\Translation