History
I have a large app that I wrote in php (using older techniques ;) about 15++ years ago
Over the last year I have tasked myself with updating it and found Laravel appeared to be the general way to go.
Writing again from the ground up pointing the new app to the existing database. That has it's own challenges and wondering if that was the right decision too :D
So I started as a relative Laravel newbie using laravel/ui and when I started I learn now that /ui was being phased out in favour of breeze -> jetstream and so was bootstrap moving to tailwind.
Anyhow, I'm now convinced that Breeze and Tailwind are probably where I should be - (and I'm liking Livewire too)
My stack needs some locking down !
I like the "simplicity" of Bootstrap and Livewire BTW
So all the work I have done so far - can it be salvaged or should I composer new and make it with breeze and tailwind and rip the bandaid off
Yes, you can salvage the work you have done so far and migrate from laravel/ui to Laravel Breeze. Laravel Breeze is a lightweight starter kit that provides authentication scaffolding with minimal setup. Here's how you can migrate your existing project to Laravel Breeze:
Install Laravel Breeze:
composer require laravel/breeze --dev
Generate the authentication scaffolding:
php artisan breeze:install
Update your routes/web.php file to include the authentication routes:
use Laravel\Jetstream\Jetstream;
Jetstream::auth();
Route::get('/', function () {
return view('welcome');
});
Update your app.blade.php layout file to include the necessary CSS and JavaScript files for Tailwind CSS:
By following these steps, you should be able to migrate your existing project from laravel/ui to Laravel Breeze and start using Tailwind CSS for styling.
@Snapey I am thinking of doing the same. However, LaryAI does not mention where to remove/uninstall laravel/ui scripts. Or are they just automagically converted?
Thanks!
@jlrdw Thanks for that - I will have a serious look at it. Currently my biggest enemy is time. If I can load Breeze with two clicks vs doing things manually, then that is pretty compelling. What is it specifically that you do not like about Breeze?