Skip to content
Advertisement

why I get spatie/laravel-cors[1.2.0, …, 1.2.2] require illuminate/support 5.5.*|5.6.* when i run composer require spatie/laravel-cors

Facing this issue After I Upgraded project from Laravel 6 to Laravel 7. I actually could not upgrade laravel/framework package from 6 to 7 due to some other error of spatie/laravel-cors but than I removed spatie/laravel-cors and upgraded laravel/framework, after upgrading it wont install again. here is full error:

JavaScript

Advertisement

Answer

On the github page of the Spatie/Laravel-cors you can find this message:

We have abandoned this package because Laravel 7 introduced native support for CORS. Only use this package if you’re on Laravel 6 or below.

Why do you still need this package?

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement