Laravel 4 Form Validation, Extending the __call() method
问题 I want to extend the Form validation class to support array form elements like described here for L3 in L4. First, I changed the Validator alias with this in my app/config/app.php : 'Validator' => 'app\lib\Support\Facades\Validator', Then , I saved these codes as app/lib/Support/Facades/Validator.php <?php namespace app\lib\Support\Facades; class Validator extends \Illuminate\Support\Facades\Validator { public function __call($method, $parameters) { if (substr($method, -6) === '_array') {