The model: class Item extends Eloquent { public function getCentsAttribute() { return substr(...
Don't know if it's been already reported, but it seems a few threads are not shown correctly due to...
"After saving or creating a new model that uses auto-incrementing IDs, you may retrieve the ID...
In that case, I think something like this could be done (never tested it, though): $headlines = Post...
May a single post have multiple categories with the same name ("headlines" in this case)?
Your example leads to sorting the collection at application level, but that may perform poorly witho...
What do you mean with "create an own custom attribute"? Normally you may use the query bui...
The Laravel portal for problem solving, knowledge sharing and community building.