OQwebdesign logo
  • Home
  • About
  • Tech Blog

How to Install Specific Laravel Version Using Composer

June 3, 2022 How to Install Specific Laravel Version Using Composer
Share
Tweet
Share
0 Shares

Introduction

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!

Popular Tech Posts

  • .htaccess redirect https www made easy
  • How to avoid permissions folder issues for Laravel when using Ubuntu
  • Easy way to setup a local HTTP Server on macOS
  • A NEW Modern Clearfix Hack With display: flow-root

Categories Cloud

Apache Web Server CSS Debian Install Brotli Laravel Nginx PHP Ubuntu Wordpress
white OQWebdesign logo

© Copyright 2007-2025 OQwebdesign. All rights reserved.

  • Home
  • About
  • Tech Blog