Support the ongoing development of →
Input Database Eloquent
Last updated 1 year ago.

Oh... I found this comment:

// If the "attribute" exists as a method on the model, we will just assume
// it is a relationship and will load and return results from the query
// and hydrate the relationship's value on the "relationships" array.

Strange behavior. It seems you cant have attribute and method with same name.

Last updated 8 years ago.

Sign in to participate in this thread!


Your banner here too?

kticka kticka Joined 7 Aug 2014


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

Your logo here?

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

© 2024 - All rights reserved.