#Laravel upgrade - CORS to install or not ?
1 messages · Page 1 of 1 (latest)
What they mean to say is that the laravel skeleton included that package by default from 7.x - 8.x. While 6.x did not have it, so upgrading you would need to require yourself.
But that will be moot when you upgrade to 9.x and on to 10.x
As 9.x+ has the cors middleware/config actually built into the framework core.
Once you are at 9.x or 10.x yea
I'm at 10 upgrade from 9
I checked 10's Kernel it's not having this line "\Illuminate\Http\Middleware\HandleCors::class"
this line is mandatory only if we come from older versions?
The old version was the fruitcake one, if you had it at all
Rather, is something breaking?
I never used CORS, at 7 upgrade they asked to installe it as shown in the first image
Ah, you should be able to leave it commented out in the global middleware then
now at 10 at composer update I got an issue, nortmal becaus the package is deprecatedd
ok perfect
thks
I have a new one now lol
ok no risks so
these are not copied over like breeze
I go for 4
yea just put to 4
Well...the helpers for one, unless you really need that legacy package. No clue what symfony http client is. And carbon is a dependency of the framework's core already.
Great are you familiar with aspnet also?
Nopeeee