spatie / laravel-cors

Send CORS headers in a Laravel application
https://spatie.be/en/opensource/laravel
MIT License
603 stars 59 forks source link

Rarely throws a BindingResolutionException #64

Closed meijdenmedia closed 4 years ago

meijdenmedia commented 5 years ago

I very rarely receive a BindingResolutionException. Can not figure out why. Do you guys have any idea of what could be wrong?

I'm currently running Laravel 5.5 with spatie/laravel-cors 1.4.0

Screenshot 2019-08-07 at 08 29 57

spatie-bot commented 4 years ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.

meijdenmedia commented 4 years ago

Anyone else having these issues? Running Laravel 5.8 now and still facing these issues very randomly.

freekmurze commented 4 years ago

I've not come accross this problem myself. I welcome a PR that fixes it.

meijdenmedia commented 4 years ago

I would love to submit a PR. Do you have any clue how to find out what the underlying issue is? Or where to look?

freekmurze commented 4 years ago

Not really, I haven't encountered this error myself yet.

litan1106 commented 4 years ago

I also ran into this issue with phpunit. It worked fine after I removed the bootstrap/cache files.

Target [Spatie\Cors\CorsProfile\CorsProfile] is not instantiable while building [Spatie\Cors\Cors].