Laravel 8 Authentication : Using Laravel UI (Without Jetstream)

Опубликовано: 02 Ноябрь 2024
на канале: Coding Skills
13,124
129

How to use old laravel new project-name --auth in Laravel 8 Step by Step

If you want to upgrade your application to Laravel 8 from the previous version, then you don't need to replace the code of your authentication instead you just update the package to " laravel/ui to ^3.0 " and follow the upgrade instructions given in the below link
https://laravel.com/docs/8.x/upgrade#...
https://github.com/laravel/ui

Steps
1) Upgrade the Laravel installer to version 4
you can check using the command: laravel -v
for upgrading to the latest version: composer global update laravel/installer

2) Install a new Laravel 8 application using the laravel command: laravel new project-name

3)Install Laravel UI package using: composer require laravel/ui
if you are upgrading from the previous version
Update the following dependencies in your composer.json file:

guzzlehttp/guzzle to ^7.0.1
facade/ignition to ^2.3.6
laravel/framework to ^8.0
laravel/ui to ^3.0
nunomaduro/collision to ^5.0
phpunit/phpunit to ^9.0

4) Run the following command to generate authentication scaffolding:npm install && npm run dev

5) Goto the .env file of your application and setup the database

6) Next, apply migration using the command: php artisan migrate

7)Start the development server: php artisan serve

Node Installation
   • Node.js Installation On Windows 10 | ...