From php artisan tinker
I called $val->passes()
and get the following error
[3] > $val = $player->getValidator($aPlayer);
// object(Illuminate\Validation\Validator)(
// 'container' => object(Illuminate\Foundation\Application)(
//
// )
// )
[4] > $val->passes();
PHP Fatal error: Uncaught exception 'BadMethodCallException' with message 'Method [validateBoolean] does not exist.' in /vagrant/laravel/vendor/laravel/framework/src/Illuminate/Validation/Validator.php:2225
When I remove the boolean validation rule...
[3] > $val = $player->getValidator($aPlayer);
// object(Illuminate\Validation\Validator)(
// 'container' => object(Illuminate\Foundation\Application)(
//
// )
// )
[4] > $val->passes();
// true
[5] > exit();
This was an issue with earlier versions of Laravel, so you might want to update the framework. See https://github.com/laravel/framework/commit/95aaa4de97bdddd4156b06afdad0a66196086565
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community