#Laravel Breeze just deleted ~40h of work

38 messages · Page 1 of 1 (latest)

sinful ice
#

Well, Breeze is a starter kit, you'd install it in a new application.
Guess that's the hard way of learning to use git 😅

gritty palm
#

It should really be clear in the docs. It even removed my package.json?!

sinful ice
#

They do mention that tho..?

Breeze provides a minimal and simple starting point for building a Laravel application

#

Even in the installation;

First, you should create a new Laravel application

gritty palm
#

Starting point !== removes all JS, CSS and Packages

#

of course one has to create a new project before installing

glacial granite
#

Breeze isn't a "backend library". It creates views and styles for you.

sinful ice
#

All they do is talk about a new application, not existing applications 🤷‍♂️

gritty palm
#

It didn't though? I chose the API scaffolding

#

It should delete my Dropbox folders as well because why not? It's a starting point bro!

glacial granite
#

Get owned honestly

dapper light
#

You're not even using git locally for 40 hours of work? Consider this a lesson to start doing that

gritty palm
#

Nah, I can recover the files, it's not a problem. But it's still really unclear why Breeze removes app.css, package.json, everything in resources/js/. I didn't even choose a frontend framework.

Is it that hard to add a message to the breeze:install command that says:
"Warning: we will remove anything we feel like, even if it's unrelated to what you're trying to install"

glacial granite
#

If you can recover the files, why cry about it? Go add a PR to this open source framework because you misunderstood what breeze is meant for. Can't please everyone.

gritty palm
sinful ice
# gritty palm Nah, I can recover the files, it's not a problem. But it's still really unclear ...

Then make a PR to the docs that indicate it?
I get that it's kinda annoying you lost your shit, but honestly, the use-case for breeze are mentioned. And yeah, the breeze api scaffold makes your app an "API only", thus removing all things unrelated to an API (such as npm) is expected imho. I feel like a lot of devs have gotten in the habit of blindly executing commands and then it doesn't do what they expect, then to blame the package..

glacial granite
gritty palm
sinful ice
#

Like the Vue scaffold only removes the welcome blade file afaik, because that's the only one that exists in a new Laravel app.

glacial granite
#

Again, why install the API stack if you've built your frontend within Laravel. Are you gonna send API requests from domainA.com to... domainA.com ?

You're not the only one who's been owned by this, but it's also clear that people fire off commands willy nilly and get upset when it doesn't do as expected.

#

I can get that maybe what exactly happens should be more clear to beginners or warn you first

But I'll agree to disagree about the "it shouldn't delete files"

gritty palm
#

The files deleted are completely unrelated to authentication though. Honestly, you seem to defend a pretty unnecessary side effect that is easily avoidable. I'm not saying I couldn't have avoided this but see it from my point of view and process:

  1. Oh, Christmas holidays, let's try this thing I've been thinking about.
  2. Spend hours building a nice UI using Laravel Blade and Vue. No real backend except for controllers returning blade views yet.
  3. "Oh, I need authentication soon, Breeze seems like a br..."
  4. php artisan breeze:install

Laravel Breeze's default view layer is made up of simple Blade templates styled with Tailwind CSS.
"Don't need that, just want the API"
Laravel Breeze can also scaffold an authentication API that is ready to authenticate modern
...
During installation, Breeze will add a FRONTEND_URL environment variable to your application's .env file.
"Sounds good!"

  1. The whole UI is gone
sinful ice
#

Laravel Breeze can also scaffold an authentication API that is ready to authenticate modern JavaScript applications such as those powered by Next, Nuxt, and others.
It explains what the API stack is tho? It's to scaffold a new app that'll be consumed by a frontend app. You seem to be blaming Breeze for not reading the docs or having a different idea of what it was supposed to do.

Like I mentioned multiple times now, Breeze installs in a fresh app, not an existing one, that's mentioned in the very first line of the installation guide. For example Telescope doesn't mention that, I wonder why..

glacial granite
#

And again... You seem to defend a mistake on your part for assuming it works like X but works like Y.

It's super cringe that you're basically creating a help thread to complain, not to actually get help.

It's a starter kit meant to re-transform your base Laravel app into one that has auth out of the box.

And again... Blade + API stack makes absolutely no sense.

gritty palm
gritty palm
gritty palm
glacial granite
#

Bro literally stop crying

gritty palm
#

Now I'm concerned that if I remove Breeze, will it remove the whole project?

glacial granite
#

"IF EVERYTHING WORKED HOW I WANTED IT WOULD BE BETTER"

#

No it won't

gritty palm
#

"THE DOCS CANT CHANGE THEY'RE PERFECT AND ALL PACKAGES SHOULD REMOVE ANYTHING THEY DON'T LIKE"

glacial granite
#

@sinful ice can you lock this completely unnecessary help thread

#

"WAAAAH MOM THIS PACKAGE I INSTALLED DIDNT WORK AS EXPECTED TIME TO CRY TO EVERYONE WHO CANT DO ANYTHING ABOUT IT"

#

Absolute clown

#

Waste of time on new years eve

#

Get owned by your own incompetence