|
|
@@ -35,6 +35,14 @@ class ActivityUser extends BaseModel
|
|
|
const STATUS_IN_PROGRESS = 1;
|
|
|
const STATUS_COMPLETE = 2;
|
|
|
|
|
|
+
|
|
|
+ public function member()
|
|
|
+ {
|
|
|
+ return $this->belongsTo(User::class, 'member_id', 'member_id')
|
|
|
+ ->select(['id', 'member_id', 'username', 'first_name', 'status']);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
protected function getDetailImageAttribute($value)
|
|
|
{
|
|
|
return Util::ensureUrl($value);
|