Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tani's avatar
Level 1

Unable to install laravel/ui in Laravel 8

I am trying to install laravel/ui but below is the error showing up:-

composer require laravel/ui:^3.0.0

./composer.json has been updated
Running composer update laravel/ui
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
 - Locking laravel/ui (v3.0.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
 - Downloading laravel/ui (v3.0.0)
 - Downgrading laravel/ui (v3.2.0 => v3.0.0): Extracting archive
Generating optimized autoload files

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

[Symfony\Component\Finder\Exception\AccessDeniedException]
RecursiveDirectoryIterator::__construct(

0 likes
15 replies
tykus's avatar

This legacy package is a very simple authentication scaffolding built on the Bootstrap CSS framework. While it continues to work with the latest version of Laravel, you should consider using Laravel Breeze for new projects. Or, for something more robust, consider Laravel Jetstream.

Read the README

Install Laravel Breeze / Jetstream

1 like
warpig's avatar

Yes, if you're looking for something simple I'd go with Breeze, Jetstream seems to be more complex with more features that you might not be looking for.

warpig's avatar

- Downgrading laravel/ui (v3.2.0 => v3.0.0): Extracting archive this line is interesting.

Did you tried to install something before?, since it says it's downgrading to match the version 3.0.0 you specified in the command, that's why I bring it up.

Maybe you should type the command: composer require laravel/ui:^3.2.0 ?

If all fails remember you can always get Laravel breeze: https://github.com/laravel/breeze which is a more up to date version of this.

tani's avatar
Level 1

composer require laravel/ui:^3.2.0 this is also not working same error.

tykus's avatar

Laravel UI will not work; instal Laravel Breeze or Jetstream

MichalOravec's avatar

You already have laravel/ui installed and ui is still pretty good.

tani's avatar
Level 1

Okay. I was trying to install because I am receiving error:-

Route [login] not defined.
tani's avatar
Level 1

Thanks. I have tried this before and that is why I was installing laravel/ui.

In order to use the Auth::routes() method, please install the laravel/ui package.
jlrdw's avatar

@tani you can wrap auth routes like:

Route::middleware(['auth'])->group(function () {
    
    put in here
});

Snapey's avatar

have you followed the installation instructions

https://github.com/laravel/ui

once you have the package installed (which it sounds like you have) then you have to run the artisan commands to scaffold the framework

Be prepared to have views overwritten so make sure this is a new project or you have backups (preferably your project with a git commit)

1 like

Please or to participate in this conversation.