DEV Community

hardyweb
hardyweb

Posted on

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)