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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay