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

Snackpack's avatar

Laravel 8 and Bootstrap 4 Frontend Scaffolding (PHP 8.0 / 8.1)

Hello, I am already a bit desperate. I am trying to install Laravel 8 (frontend scaffolding) Bootstrap 4.

I proceed as follows:

  1. composer create-project laravel/laravel example-app
  2. composer require laravel/ui:^3.3
  3. php artisan ui bootstrap --auth

As you can see, I am using version laravel/ui:^3.3. Unfortunately, however, version laravel/ui:^3.4.1 is automatically installed. (Bootstrap 5) - But I don't want that.

On the localhost with XAMPP this works funnily enough without problems There I can install version laravel/ui:^3.3 with Bootstrap version 4.

Maybe someone can help me?

Sorry for my bad English

0 likes
6 replies
Tray2's avatar

Then open your composer.json file and tell it to use 3.3 and not 3.4.1

1 like
Snackpack's avatar

@Tray2 Unfortunately that doesn't work. 3.4.1 will be installed anyway.

Please or to participate in this conversation.