Home > OS >  I'm trying to download Laravel 9, but version 5.4 is what I get
I'm trying to download Laravel 9, but version 5.4 is what I get

Time:08-07

i'm trying to install laravel for first time, and i want to install version 9, so I follow steps in the documentation: composer create-project laravel/laravel example-app cd example-app php artisan serve

but then when I check the verstion, I find that its 5.4.36 and I can't find a way to upgrade it note: I already have php 8 , mySQL and composer.

CodePudding user response:

composer global require laravel/installer
 
laravel new example-app
 
cd example-app
 
php artisan serve

CodePudding user response:

The 5.4.36 that you get, is the version of Laravel Installer. if you Run php artisan --version in your folder where you installed your project you will be able to see your laravel framework version. Which should be 9.

if not try this code: composer create-project laravel/laravel first-laravel9

  • Related