DEV Community

hardyweb
hardyweb

Posted on

1

How To Create Laravel Project With Composer

Old way

composer create-project laravel/laravel project-name 
Enter fullscreen mode Exit fullscreen mode

this command will install the latest laravel version

composer create-project laravel/laravel:^10.0 project-name
Enter fullscreen mode Exit fullscreen mode

this command will install laravel version 10

new way ( Laravel Installer )

composer global require laravel/installer

laravel new project

cd project

php artisan serve
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay