Today we will learn how to install old version Laravel using Composer for project that may require older version of laravel. Also sometime you have PHP older version < 8 then latest laravel version 9 not supported for php older version. Then this method is very useful.
Installation of old version of Laravel is straight forward and we can use directly composer create-project command to generate it.
To install the old version of Laravel, the easiest way is to use the composer create-project command. Using this command we have to specify the only project name and Laravel version that we want it to be installed.
composer create-project laravel/laravel project-name 8.0.*
There is another method which is little complicated but you can also that method also.
If you don’t want to use composer method then you can go with Laravel Installer method also. For this you have to use “laravel new” command to install latest vesion first.
composer global require laravel/installer
laravel new your-project-name
Once the latest Laravel version install then update the composer.json file and change laravel version. Next remove the vendor file and run composer install command. Once finish you have to run php artisan and you will be able to see the version that you have set in composer.json file.
Today we learn two method of laravel different version of installation. Do you have any question fee freel contact us.
Introduction Git tags are an essential feature of version control systems, offering a simple way…
Introduction The methods that browsers employ to store data on a user's device are referred…
Introduction A well-known open-source VPN technology, OpenVPN provides strong protection for both people and businesses.…
Introduction Integrating Sentry into a Node.js, Express.js, and MongoDB backend project significantly enhances error tracking…
Introduction In the world of JavaScript development, efficiently managing asynchronous operations is essential. Asynchronous programming…
Introduction Let's Encrypt is a Certificate Authority (CA) that makes it simple to obtain and…