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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community