Update Activity model

pull/780/head
Daniel Supernault 6 years ago
parent 01c7a95ef5
commit 884f675d30
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -7,4 +7,14 @@ use Illuminate\Database\Eloquent\Model;
class Activity extends Model
{
protected $dates = ['processed_at'];
public function toProfile()
{
return $this->belongsTo(Profile::class, 'to_id');
}
public function fromProfile()
{
return $this->belongsTo(Profile::class, 'from_id');
}
}

Loading…
Cancel
Save