if your mutator name is :
public function getClientNameAttribute() {
return Client::where('id', $this->client_id)->value('name');
}
}
you could access to its value in blade with this syntax
{{ $domain->client_name }}
it's seem you've forgot the "underscore" ;) it's work fine for me
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community