Skip to content

u/Tontonsb

In this archive from Nov 2018 to Dec 2026

54
posts
1.6k
comments
10
media
5.7k
score
8 saved before deletion

Top posts

Laravel is such a ravioli!

Just here to vent a bit. So, I wanted to find how is the password reset functionality tied to a field called email on the user model. First off, sending. The documentation says that one can override the sendPasswordNotification method on the user. Okay then, it must be calling the method, so let's l...

114 points57 comments
Open on Reddit

This community is awesome!

I somehow hadn't noticed anything special about this community, but this thread today is so overwhelmingly positive... https://www.reddit.com/r/laravel/comments/hwf76b/failed_a_laravel_coding_exercise_for_a_job/ Everyone is so helpful and polite. OP is keen and takes every comment well even the one...

85 points19 comments
Open on Reddit

Top comments

Sorry, but this just shows that you don't actually understand where are the performance costs on Eloquent.

If you do Transaction::sum('amount') it just gets passed to the underlying query builder and it's pretty much the same as doing what you did, just in a more proper way. The overhead is extremely tiny.

The performance is different if you do the opposite. If you load 50k rows with query builder, you just get a lot of data. If you load 50k rows with Eloquent, it will load the same data and then instantiate a Model object for each of the rows and that's what can be slow.

54 points

the underlying language is not evolving for 15 years

This is extremely dishonest. Have you even seen PHP of 2011?

Looks like whatever happens, someone will consider the "internals team" dunces that are wasting all the development money they're seemingly showered in. Regardless if BC is broken or something is rejected to preserve BC, it will always be clear that these academic dimwits are obviously only theoreticizing and working in C and have no idea about the real life PHP projects :D

53 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.