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

Meaulnes's avatar

Don't understant ui scaffolding in laravel 7

I am rather new to laravel. I could manage to create my first site and deploy it, but attempting to create a new one, I stumble over something I probably misunderstand. I am familiar with bootstrap but not at all with vue and react. What I want to do is to setup a new Laravel install with registration verification email nevertheless, reading the installation page on the documentation I bump into this:

Once the laravel/ui package has been installed, you may install the >frontend scaffolding using the ui Artisan command:

// Generate basic scaffolding... 
php artisan ui bootstrap 
php artisan ui vue 
php artisan ui react

// Generate login / registration scaffolding... 
php artisan ui bootstrap --auth
php artisan ui vue --auth 
php artisan ui react --auth

In each of these paragraphs, **shoud I run only one command **or the 3? What troubles me is the fact that after running one command, I am asked to run npm install & npm run dev and each time I am asked if I want to replace numerous templates and controllers.

0 likes
2 replies
Snapey's avatar

You run one command from the six

decide what front end support you want, and if you want your project scaffolded with login /register views etc

Then after that command has finished you must run npm to compile the front-end assets

Meaulnes's avatar

I finally swapped to laravel8 and jetstream. I think the documentation is clearer and I could manage to achieve what I wanted. Thank you for your help.

Please or to participate in this conversation.