Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_RECOVERABLE_ERROR) Type error: Argument 1 passed to App\Post::App\{closure}() must be an instance of App\Builder, instance of Illuminat

Post模型中加入 use Illuminate\Database\Eloquent\Builder; 就不会报错了

你可能感兴趣的:(Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_RECOVERABLE_ERROR) Type error: Argument 1 passed to App\Post::App\{closure}() must be an instance of App\Builder, instance of Illuminat)