Skip to content

u/platinumpt

In this archive from May 2010 to Feb 2025

7
posts
60
comments
3
media
2.6k
score

Auth::login from within a Listener

I'm currently logging people in using SSO and SAML. I have a listener that awaits for the login event to happen, and then tries to simply fire Auth::login($user) with the user object. It doesn't seem to be working as intended, I'm wondering if this is because it's within a listener?

4 points1 comments
Open on Reddit

Race conditions for comments

I'm writing a comment system that enforces a short break (30s) to prevent mass-spamming. When a comment is added, we'll do a quick check to see if a comment has been posted within the last 30secs, it not, create it. However I've found it I fire off a whole bunch at once, I can reasonably easily crea...

5 points9 comments
Open on Reddit

Laravel queue with --limit never stops

Having a bit of an issue with failing jobs that continually retry (and use up our API limit...) using supervisord. [program:app-queue-listener] process_name=%(program_name)s%(process_num)02d command=php /home/app/artisan queue:work --daemon --env=prod --timeout=0 --sleep=5 --tries=3 autostart=true a...

2 points3 comments
Open on Reddit

Where to store common classes/functions

This is probably more of an architecture question than anything else, and maybe I'm overthinking it. Suppose I have a multiple controllers accepting file uploads going to a common destination, using File model/DB table/FileController to handle the serving of them. I need to access and modify these u...

1 points7 comments
Open on Reddit

End of this list.

Back to top

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.