stratboy's avatar

Why Breeze is out of starter kits?

Hi, I was wondering if anyone know: why Breeze isn't a starter kit choice anymore? But more in general, why there are no more non-js-framework starter kits? So are we all supposed to develop javascript frontendsn or livewire? No more simple php?

0 likes
10 replies
LaryAI's avatar
Level 58

Laravel Breeze is still available as a starter kit, but it's possible that there might be some confusion or changes in the documentation or the way it's presented. Laravel Breeze is designed to provide a simple and minimal starting point for building Laravel applications with authentication features. It uses Blade templates and Tailwind CSS, and it doesn't require a JavaScript framework like Vue or React, making it suitable for those who prefer a more traditional PHP approach.

If you're not seeing Breeze as an option, it might be due to a specific setup or documentation version you're looking at. Here's how you can still use Laravel Breeze:

  1. Install Laravel Breeze: You can install Laravel Breeze using Composer. First, ensure you have a fresh Laravel application set up. Then, run the following command:

    composer require laravel/breeze --dev
    
  2. Install Breeze: After requiring Breeze, you can install it using the Artisan command:

    php artisan breeze:install
    
  3. Run Migrations: Breeze comes with migrations for the authentication system. Run the migrations to set up the necessary database tables:

    php artisan migrate
    
  4. Compile Assets: If you want to use the default styling, you need to compile the assets using Laravel Mix:

    npm install && npm run dev
    
  5. Serve Your Application: Finally, you can serve your application to see Breeze in action:

    php artisan serve
    

Laravel Breeze is a great choice if you want a simple, no-frills authentication system without the need for a JavaScript framework. If you're looking for more advanced features or integration with JavaScript frameworks, you might consider Laravel Jetstream, which offers more options including Livewire and Inertia.js.

If you have any specific issues or need further assistance, feel free to ask!

jlrdw's avatar
jlrdw
Best Answer
Level 75

Why do you need a starter kit? I just use blade, regular javascript, and axios js. I also use regular css.

No more simple php?

The back end is php.

I saw a post where you can still use breeze, check github on this.

https://github.com/laravel/breeze

From composer.json

    "require": {
        "php": "^8.2.0",
        "illuminate/console": "^11.0|^12.0",
        "illuminate/filesystem": "^11.0|^12.0",
        "illuminate/support": "^11.0|^12.0",
        "illuminate/validation": "^11.0|^12.0",
        "symfony/console": "^7.0"
    },
    "require-dev": {
        "laravel/framework": "^11.0|^12.0",
        "orchestra/testbench-core": "^9.0|^10.0",
        "phpstan/phpstan": "^2.0"
    },
    "autoload": {
        "psr-4": {
            "Laravel\\Breeze\\": "src/"
        }
    },
1 like
akoper's avatar

The world makes applications with a backend framework like Spring Boot or .NET, tokens and a frontend SPA. This has been state-of-the-art web application architecture for maybe a decade now. I like Laravel - I want to make a SaaS with Laravel as the backend, tokens and React. Crazy, eh?! I'm surprised how hard it is to do. I get that there's a Laravel ecosystem, but make this standard way of programming web applications a standard option, a first-class citizen. I've been surprised, disappointed and frustrated trying to start this application. I want a package that creates the standard register, login, logout, etc. features with tokens - crazy eh?! - and all of Laravel's stuff is forcing me into and to learn Inertia, XSRF cookies, etc.

Tray2's avatar

Not sure what your rant is about, but there is a reason for all those things. Inertia is a good way to interact between react and a laravel back end. You don't have to use it for your site, the auth starter kits does, and it take like two minutes to set it up, and have a react auth with the Laravel installer.

Snapey's avatar

choosing livewire is closest to the breeze starter kit. And you don't really need to know about livewire or use it in your own routes.

akoper's avatar

does Livewire issue pwa tokens when a user registers?

jlrdw's avatar

You may want to start your own thread here, but see the chapter on Sanctum.

MrMoto9000's avatar

Ignoring the stupid answer by the AI, this is a great question. Laravel Breeze is still very much relevant. Don't include technology that you don't need, and most projects do not need fully fledged JS frameworks (or Livewire).

jlrdw's avatar

I don't use any of that stuff. I stick to regular JS and either axios js or fetch js. Using regular JS is ridiculously easy once you learn it.

Ditto for rebuilding a jet engine, when new it's hard, with several years of experience, nothing to it. But just an example. All these frameworks are doing is using regular JS behind the scenes.

JussiMannisto's avatar

And all Laravel is doing is using regular PHP behind the scenes. And PHP eventually just compiles down to regular machine instructions and system calls.

How would you approach building a front end that maintains state while browsing, for example? Let's say you have to build YouTube or Spotify, where you can have a minified player playing in one corner while browsing the rest of the site. That won't work if you discard and rebuild the DOM on every page visit, like in a traditional MPA.

You could build those sites with native JS, but at that point you'd be building your own JS framework to handle navigation and rendering. Knowing how to send HTTP requests doesn't help you there. That's not the problem these front end frameworks exist for.

Please or to participate in this conversation.