Laravel. How to reverse `php artisan breeze:install`
Stefan Bogdanescu
Founder & Senior Architect · 2026-06-29
# Laravel: How to Reverse `php artisan breeze:install` and Switch Frontend Stacks
As a senior developer, I often deal with situations where we need to pivot our project structure—perhaps moving from one front-end stack (like default Blade/Livewire setup) to another (like a full Vue setup). When you run an installation command like `php artisan breeze:install`, you are essentially setting up scaffolding and configuring dependencies for the chosen starter kit.
The question of how to "reverse" this process is common, but it requires understanding *what* the command actually does under the hood. Simply running an "undo" command isn't always possible because these commands often write configuration files and create directories that are integral to the setup.
Here is a comprehensive breakdown of how to handle this situation effectively, focusing on a clean transition for your Laravel application.
## Understanding the Breeze Installation Process
When you execute `php artisan breeze:install`, Laravel Breeze doesn't just add a single file; it performs several actions:
1. **Scaffolding:** It generates the necessary Blade components, routes, and controllers (if applicable).
2. **Dependency Setup:** It installs necessary NPM packages (like Tailwind CSS or Alpine.js) into your project's `package.json`.
3. **Configuration:** It updates configuration files to reflect the new front-end structure.
Because these changes are baked into your application's structure and dependencies, there isn't a single `php artisan breeze:uninstall` command that perfectly reverts everything without potential file corruption or leaving behind orphaned configurations.
## The Practical Solution: A Clean Transition Strategy
Since true reversal is often impractical for scaffolding tools, the most robust approach when switching front-end stacks (e.g., moving from Breeze to a pure Vue setup) is to treat the installation as a starting point and manage the cleanup manually to ensure a clean slate for your new setup.
### Step 1: Backup Your Work
Before making any changes, always commit your current state or back up the relevant configuration files. This is crucial, especially when dealing with package installations.
### Step 2: Remove Breeze Artifacts Manually
To prepare for installing Vue scaffolding, you need to remove the files and dependencies Breeze introduced. Navigate to your project directory and manually delete the directories and files created by the installation.
For example, if Breeze primarily deals with frontend assets and configuration touches, you should target those areas. While specific paths can vary based on the exact version of Breeze used, look for:
* Deleting any generated Blade components or related view files.
* Removing entries from your `package.json` that reference Breeze dependencies if they are no longer needed.
If you are switching to a completely different approach (e.g., moving away from Laravel's default scaffolding entirely), the safest route is often to **delete the entire `vendor` and `node_modules` directories** and then re-initialize your project or install the new stack from scratch. This ensures that no lingering dependencies interfere with the new installation process, aligning with best practices for managing Laravel projects as discussed on platforms like [laravelcompany.com](https://laravelcompany.com).
### Step 3: Install the New Stack (Vue)
Once you have a clean directory, you can confidently run the command to install your desired stack. For installing Vue scaffolding, you would typically follow the official setup instructions for that specific package—which usually involves using tools like Vite or Inertia, depending on the exact integration path you choose. This allows the new installation to correctly set up all necessary files without conflicting with old Breeze artifacts.
## Conclusion
Attempting to reverse a scaffolding command is generally not recommended because these commands are designed to initialize large sets of interconnected files. Instead of fighting the installation, adopt a strategy of controlled cleanup. By understanding what the installer does and manually removing its generated artifacts, you gain control over your project state. This approach ensures that when you move from one frontend structure to another—whether it's Breeze to Vue—you start with a clean foundation, which is essential for scalable and maintainable Laravel applications.