You've already forked guangan
UserShare
This commit is contained in:
@ -11,6 +11,11 @@ class TicketUserShare extends Model
|
||||
return str2arr($data['imgs'] ?: '', '|');
|
||||
}
|
||||
|
||||
public function type()
|
||||
{
|
||||
return $this->belongsTo(TicketType::class, 'type_id', 'id');
|
||||
}
|
||||
|
||||
public function getTypeNameAttr($value, $data)
|
||||
{
|
||||
$type = $this->type()->find();
|
||||
|
Reference in New Issue
Block a user