Home / Tutorials / How to Install Older Version of Laravel using Composer
How to Install Older Version of Laravel using Composer cover

How to Install Older Version of Laravel using Composer

Learn how to install older version of laravel using composer for project that may require older version of laravel

12 mins

12.9K

3 years ago

0 comments

Beginner

Installing an old version of Laravel is quite straight forward and we can directly use the composer create-project command to generate it.

Composer create-project


To install the old version of Laravel, the easiest way is to use the composer create-project command. Using this command we only have to specify the project name and Laravel version that we want it to be installed and there you go it's ready.
composer create-project laravel/laravel your-project-name 6.0.*

Laravel Installer


If you prefer using the Laravel installer make sure to install it first by using the command below. And once it's installed do run "laravel new" command to create the latest version of Laravel.
composer global require laravel/installer

laravel new your-project-name
Once it's created, update the composer.json file and change the Laravel version. Next, remove the vendor file and run composer install. Now you can run "php artisan" and you will be able to see the version that you have set.
notion avatar

Alaz

Week-end developer currently experimenting with web, mobile, and all things programming.

Support Us

If you like our tutorial, support us by being our Patreon or buy us some coffee ☕️

Welcome to PostSrc V3

PostSrc Dark Logo

You have to login to favorite this