laravel custom validation return empty errors when I defined it in the ServiceProvider
问题 When I defined a custom validation in the Validated Service Provider. And when it is failed I got empty MessageBox. I don't understand why it is happens. UPDATED: <?php namespace App\Providers; use Illuminate\Support\ServiceProvider; class ValidatorServiceProvider extends ServiceProvider { public function boot() { \Validator::extend('custom_validation', function ( $attribute, $value, $parameters ) { return false; } ); } } in the controller private function isValid() { $this->validation =