dingo / api

A RESTful API package for the Laravel and Lumen frameworks.
BSD 3-Clause "New" or "Revised" License
9.33k stars 1.25k forks source link

Dingo 2.2.4 with Laravel 5.5.45, Validate in Request throw Exception #1667

Closed wangyuanhui closed 5 years ago

wangyuanhui commented 5 years ago
Q A
Bug? yes
New Feature? no
Framework Laravel
Framework version 5.5.45
Package version 2.2.4
PHP version 7.3.1

Actual Behaviour

Exception

Expected Behaviour

no error

Steps to Reproduce

Due to commit: https://github.com/dingo/api/commit/37744e2093ffac8dff7918e7c98eebfc67fba337

validate afterSolving added in LaravelServiceProvider

    // Validate FormRequest after resolving
    $this->app->afterResolving(ValidatesWhenResolved::class, function ($resolved) {
        $resolved->validateResolved();
    });

Possible Solutions

wangyuanhui commented 5 years ago

just upgrade laravel