Support the ongoing development of Laravel.io →
thepsion5

thepsion5

Joined 3 Feb 2014

Statistics

Threads 1
Replies 119
Solutions 13
Articles 0

[EXERCISE] Refactoring Exercise #1 is Complete! Discuss.

After some interest in the Laravel subreddit, I've decided to run a refactoring exercise a few times...

0 Likes
5 Replies
replied 11 years ago

I doing somthing wrong? the sentry save update does not update DB but returns true

When an attribute isn't present in the model, it won't be updated in the database when you call the...

0 Likes
replied 11 years ago

Trigger 500 error from the start.php file

You can just use the header function in PHP to set the response status and then exit: http://www.php...

0 Likes
replied 11 years ago

Getting ->diffForHumans() to work on other timestamp fields

You should be able to define a due date in the getDates() function and have it accessible as a Carbo...

0 Likes
Solved
replied 11 years ago

Joined table IDs are returned in the Model Collection instead of the main table IDs

Specify a table alias in your join, like so (using jazpur's example): $collection = Order::with('ath...

0 Likes
replied 11 years ago

Eloquent model default scope.

What you probably want to do is override the newQuery() function on the two models in question. Some...

0 Likes
Solved

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2026 Laravel.io - All rights reserved.