Readytocode
  • Home
  • Laravel
  • PHP
  • React Js
  • Git
  • Server
Facebook X (Twitter) Instagram
Readytocode
  • Home
  • Laravel
  • PHP
  • React Js
  • Git
  • Server
Facebook X (Twitter) Instagram Pinterest LinkedIn Reddit
Readytocode
You are at:Home Upgrade to Laravel10.0 From Laravel9.x

Laravel

Upgrade to Laravel10.0 From Laravel9.x

JustinBy JustinFebruary 17, 2023Updated:February 17, 2023No Comments2 Mins Read
Facebook Twitter Pinterest LinkedIn Tumblr Email




In Laravel10 Not a major upgrade as like 9. But Laravel 10 still has many changes like

  • Laravel Pennant: feature flags with ease
  • Handle external processes with ease
  • Identify slow-running tests
  • Laravel v10 uses invokable validation rules by default
  • The Laravel 10 skeleton uses native types instead of docblocks
  • Customize the path of config files
  • doctrine/dbal is not needed anymore to modify columns in migrations

Note- Laravel 10 requires at least Composer 2.2

I will give you two condition should you upgrade or not.

Upgrade

  • Is now a days project in development phase
  • Your project required the package which is in laravel10.

Not required for Upgrade

  • Your project have all done, not required any code as of date

Now coming to how we will upgrade

Minimum requirements-

  • PHP 8.1+ with the following extensions:
    • Ctype
    • cURL
    • DOM
    • Fileinfo
    • Filter
    • Hash
    • Mbstring
    • OpenSSL
    • PCRE
    • PDO
    • Session
    • Tokenizer
    • XML
  • Nginx or Apache

See the official link for upgrade

Change the line in composer.json

"laravel/framework": "^9.XX", to "laravel/framework": "^10.0",

"spatie/laravel-ignition": "^x.x" to "spatie/laravel-ignition": "^2.0"

"nunomaduro/collision": "^6.1", to "nunomaduro/collision": "^7.0",

"phpunit/phpunit": "^9.5.10", to "phpunit/phpunit": "^10.0",

"minimum-stability": "dev", to "minimum-stability": "stable",

if all done run the below command,

sudo composer update

result

Laravel10 updated

Hope all good, Happy coding

Read Also

What’s New in Laravel 10

Laravel Force Redirect HTTP to HTTPS

 

Total
0
Shares
Share 0
Tweet 0
Pin it 0
Share 0

Like this:

Like Loading...

Related

Laravel10 upgrade to laravel10
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
Justin
  • Website

Related Posts

How to Generate image from text with Laravel 10

May 16, 2023

Laravel 10 Restrict User Access

May 3, 2023

Laravel 10 Pagination Example

May 3, 2023

Comments are closed.

Featured Posts
  • Why meta tag is important for seo 1
    How to change react Page title, Page Description and some other meta Tag
    • August 4, 2023
  • 2
    How to Generate image from text with Laravel 10
    • May 16, 2023
  • Laravel 10 Restrict User Access 3
    Laravel 10 Restrict User Access
    • May 3, 2023
  • Laravel 10 Pagination Example 4
    Laravel 10 Pagination Example
    • May 3, 2023
  • install Steam on Ubuntu 5
    How to install Steam on Ubuntu 22.04 step by step
    • April 20, 2023



Readytocode
Facebook X (Twitter) Instagram Pinterest
  • About Us
  • Privacy Policy
© 2025 ReadyToCode.

Type above and press Enter to search. Press Esc to cancel.

%d