Support the ongoing development of Laravel.io →
popolla

popolla

Joined 3 Feb 2014

Statistics

Threads 3
Replies 67
Solutions 14
Articles 0

Model attribute accessor not working with object_get helper function

The model: class Item extends Eloquent { public function getCentsAttribute() { return substr(...

0 Likes
3 Replies
Solved
posted 11 years ago

Thread malformed HTML

Don't know if it's been already reported, but it seems a few threads are not shown correctly due to...

0 Likes
2 Replies

Eloquent mass assignment security policy

The fill method of Illuminate\Database\Eloquent\Model is used for mass assignment, and it is called...

0 Likes
14 Replies
Solved
replied 11 years ago

Get ID of model that I just saved

"After saving or creating a new model that uses auto-incrementing IDs, you may retrieve the ID...

0 Likes
Solved
replied 11 years ago

OrderBy WhereHas

In that case, I think something like this could be done (never tested it, though): $headlines = Post...

0 Likes
replied 11 years ago

OrderBy WhereHas

May a single post have multiple categories with the same name ("headlines" in this case)?

0 Likes
replied 11 years ago

OrderBy with my custom attributes

Your example leads to sorting the collection at application level, but that may perform poorly witho...

0 Likes
replied 11 years ago

OrderBy with my custom attributes

What do you mean with "create an own custom attribute"? Normally you may use the query bui...

0 Likes

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.