Update laravel9 to 10 #46124
Replies: 5 comments 7 replies
-
sanctum3 should be added to the Laravel10 upgrade guide |
Beta Was this translation helpful? Give feedback.
-
I'm also having an issue, in my case I got this error:
How do I resolve this? |
Beta Was this translation helpful? Give feedback.
-
Removing fruitcake/laravel-cors resolved this issue. I didn't realise I ought to have removed it since Laravel 9.2 |
Beta Was this translation helpful? Give feedback.
-
I upgraded to Laravel 10 but I got this error for the phpunit upgrade part:
It appears pestphp 1.22.4 conflicts with nunomaduro/collission 7.0.2 that's required by Laravel 10. |
Beta Was this translation helpful? Give feedback.
-
I also got the same error. solved the problem But I still get the cors error when an error occurs on the server. That is, the execution of Installed clean laravel and intentionally made a mistake in the code, and again I see the error cors, instead of an error message |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem 1
- illuminate/support[v6.0.0, ..., v6.19.1] require php ^7.2 -> your php version (8.2.3) does not satisfy that requirement.
- illuminate/support[v7.0.0, ..., v7.28.4] require php ^7.2.5 -> your php version (8.2.3) does not satisfy that requirement.
- illuminate/support[v8.0.0, ..., v8.11.2] require php ^7.3 -> your php version (8.2.3) does not satisfy that requirement.
- Root composer.json requires laravel/sanctum ^2.15 -> satisfiable by laravel/sanctum[v2.15.0, v2.15.1, 2.x-dev].
- Conclusion: don't install laravel/framework v10.0.0 (conflict analysis result)
- laravel/sanctum[v2.15.0, ..., 2.x-dev] require illuminate/support ^6.9|^7.0|^8.0|^9.0 -> satisfiable by illuminate/support[v6.10.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev].
- Only one of these can be installed: illuminate/support[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev, v10.0.0, 10.x-dev], laravel/framework[v10.0.0, 10.x-dev]. laravel/framework replaces illuminate/support and thus cannot coexist with it.
- Root composer.json requires laravel/framework ^10.0 -> satisfiable by laravel/framework[v10.0.0, 10.x-dev].
when trying to update laravel 9 to 10, i got this error from sanctum, i didn't see anything in the update documentation talking about it, so i set the version of sanctum to plus 3.2.0 so i was able to update
Beta Was this translation helpful? Give feedback.
All reactions