To add the Livewire Starter Kit with authentication scaffolding to an existing Laravel 12 application, you can follow these steps:
Install Laravel Breeze:
First, you need to install Laravel Breeze, which provides a simple implementation of authentication features. Run the following command in your terminal:
composer require laravel/breeze --dev
Install the Livewire Stack:
After installing Breeze, you can install the Livewire stack. This will set up the necessary files and configurations for Livewire in your application. Run the following command:
php artisan breeze:install livewire
Run Migrations:
Breeze will have set up some default migrations for user authentication. Run the migrations to update your database schema:
php artisan migrate
Install NPM Dependencies and Compile Assets:
Breeze with Livewire requires some frontend assets. Install the necessary NPM packages and compile the assets using the following commands:
npm install
npm run dev
If you want to compile for production, you can use:
npm run build
Verify Installation:
Now, you should have the Livewire Starter Kit with authentication scaffolding set up in your existing Laravel 12 application. You can verify this by visiting your application in the browser and checking the authentication pages (e.g., login, register).
By following these steps, you should be able to integrate the Livewire Starter Kit into your existing Laravel 12 application without needing to start from scratch.
This LaryAI stuff again... Just another AI junk. Anyone can ask claude or something and get some not exaclty right answer like this one. It's really annoying that people put this trash everywhere. Such a shame this useless sh...t is also here.
What did you use as a starting point when creating your Laravel 12 app, you choose nonefor the first question?
If, like you said, you have minimally customized your application, but want to use the Livewire Starter Kit, the easiest and fastest way is simply to create a new project using the Livewire Starter Kit and report your changes there, otherwise you would have to manually install and copy/paste quite a few things.
starter kit need to be use on initialize project in the first place. if you already have the app with feature i suggest to build the auth base on livewire, with minimally customized laravel 12, then better to make new app and move the feature to laravel 12 app livewire starter kit
if you want to use the starter kit you need to upgrade your laravel new to be up-to-date with laravel 12 and make new laravel 12 project with livewire as starter kit
I used the laravel-docker-example from GitHub so I don't have a starter's kit or any auth scaffolding so I kinda have the same issue. I want to add some auth to my existing application. Any advice on how to do this?