I have the registered Comment
model which has a User
reference, like this:
public function user() {
return $this->belongsTo('App\User');
}
This function returns an instance of a User
, and that's correct, but I don't know how to register the User
column the get que user
property using Backpack. Instead, I'm get a JSON representation of my model:
So, how do I get a specific field from my relationship function?