PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, January 7, 2022

[FIXED] 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

 January 07, 2022     composer-php, laravel, php     No comments   

Issue

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:

**Problem 1
    - spatie/laravel-cors[1.2.0, ..., 1.2.2] require illuminate/support 5.5.*|5.6.* -> found illuminate/support[v5.5.0, ..., v5.6.39] but it conflicts with another require.
    - spatie/laravel-cors[1.2.3, ..., 1.3.1] require laravel/framework 5.5.*|5.6.*|5.7.* -> found laravel/framework[v5.5.0, ..., v5.7.29] but it conflicts with your root composer.json require (^7.0).
    - spatie/laravel-cors 1.3.2 requires illuminate/support 5.5.*|5.6.*|5.7.* -> found illuminate/support[v5.5.0, ..., v5.7.28] but it conflicts with another require.
    - spatie/laravel-cors[1.3.3, ..., 1.5.2] require illuminate/support 5.5.*|5.6.*|5.7.*|5.8.* -> found illuminate/support[v5.5.0, ..., v5.8.36] but it conflicts with another require.
    - spatie/laravel-cors 1.6.0 requires illuminate/support 5.5.*|5.6.*|5.7.*|5.8.*|^6.0 -> found illuminate/support[v5.5.0, ..., v5.8.36, v6.0.0, ..., v6.20.17] but it conflicts with another require.
    - Root composer.json requires spatie/laravel-cors ^1.2 -> satisfiable by spatie/laravel-cors[1.2.0, ..., 1.6.0].**

Solution

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?



Answered By - Yolan Mees
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing