2018-09-12 00:47:25 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
class Activity extends Model
|
|
|
|
{
|
|
|
|
protected $dates = ['processed_at'];
|
2020-04-29 19:29:45 +00:00
|
|
|
protected $fillable = ['*'];
|
2019-02-03 21:47:15 +00:00
|
|
|
|
|
|
|
public function toProfile()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Profile::class, 'to_id');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function fromProfile()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Profile::class, 'from_id');
|
|
|
|
}
|
2018-09-12 00:47:25 +00:00
|
|
|
}
|