Support the ongoing development of Laravel.io →
Eloquent
Last updated 2 years ago.
0

Functions in models prefixed with "get" become Accessors - also known as fields/attributes on your model. in this case your accessor will be creating an attribute called full_name on your model, so retrieve their full name by using :

$team->full_name

Docs: http://laravel.com/docs/4.2/eloquent#accessors-and-mutators

Last updated 9 years ago.
0

Of course... How did I miss that.

Thanks,

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

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.

© 2024 Laravel.io - All rights reserved.