Skip to content

u/shif

In this archive from Feb 2012 to Jan 2023

6
posts
242
comments
0
media
867
score

is Eloquent viable for complex queries?

I'm wondering if you guys use eloquent on complex queries, for example i have this query that gets the stock of products by calculating the number of products going in minus the number of products going out that belong to an order that is paid: SELECT SUM(COALESCE(i.amount, 0) - COALESCE(o.amount, 0...

4 points8 comments
Open on Reddit

How well do you follow FIG standards?

I'm interested in know if people strive for complying with PSR's , do you use only PSR-0, do you use all of them?, are you switching from 0 to 4 now that it's out? I'm trying to start using them but there's some things in PSR-2 that go against what i'm used to, i previously used 2 spaces for indenta...

0 points11 comments
Open on Reddit

e-commerce

I've worked with php for a while and im pretty confident on doing any site or app except for a online shop, a client recently asked me if i could do one, and im clueless on what the backend of a store looks like, how am i supposed to handle the credit card info and where am i supposed to send it?

5 points22 comments
Open on Reddit

annoying notices

im getting Notice: Undefined variable: rt in inside my webpage, i just recently moved it from a hosted server to wamp on my computer, i guess that notices were turned off in the server, the line in question that gives the notice is: $q = mysql_query('SELECT ID,Name,Author FROM assets ORDER BY Views...

0 points3 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.