ks500's avatar
Level 2

Add Livewire Starter Kit to Existing Base Laravel 12 Installation...

I have a minimally customized Laravel 12 app, but now I want to install the Livewire Starter Kit with auth scaffolding.

The Laravel 12 docs say to install the starter kit using laravel new my-app, but my app is already installed and setup.

Anyone know how I can now add-on the Livewire Starter Kit with auth scaffolding?

Thanks!

2 likes
7 replies
LaryAI's avatar
Level 58

To add the Livewire Starter Kit with authentication scaffolding to an existing Laravel 12 application, you can follow these steps:

  1. 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
    
  2. 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
    
  3. Run Migrations:

    Breeze will have set up some default migrations for user authentication. Run the migrations to update your database schema:

    php artisan migrate
    
  4. 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
    
  5. 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.

2 likes
kornel's avatar

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.

1 like
RemiM's avatar

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.

kerelka's avatar

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

warpig's avatar

im trying to get the starter kits off the laravel new command but it never prompts me to select a kit... upgraded everything.

needed to update laravel installer

composer global remove laravel/installer
composer global require laravel/installer
1 like
thomas96's avatar

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?

Snapey's avatar

@thomas96 probably simplest to create a new project and copy your controllers, models, routes etc across

Please or to participate in this conversation.