How to Install Specific Laravel Version Using ComposerJune 3, 2022
Laravel is a strong PHP Framework that is used to create web application. There will be a time that we need to use a specific Laravel version for what ever reason. In order to create a Laravel project we need to to have Composer installed on our development laptop or desktop.
Installing Laravel via Composer
The fastest and simplest way of installing Laravel is via composer command. Using composer you can specify the version you want easily by running
composer create-project laravel/laravel="7.*" ProjectName
by using “7.*” you will be sure that you get all the latest patches in the 7.* branch.
Adding Authentication to your Laravel 7/6 App
Laravel 6+ has moved the auth scaffolding into a separate Laravel/UI package that you need to install in your Laravel 7 project using the following command from a new terminal:
composer require laravel/ui
After composer installing auth scaffolding, you can run the following command:
php artisan ui bootstrap --auth
This is the output of the command:
Bootstrap scaffolding installed successfully.
Please run "npm install && npm run dev" to compile your fresh scaffolding.
Authentication scaffolding generated successfully.
That should do it!