2018-05-26 22:58:22 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
class Notification extends Model
|
|
|
|
{
|
2018-05-27 03:25:04 +00:00
|
|
|
|
|
|
|
public function actor()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Profile::class, 'actor_id', 'id');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function profile()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Profile::class, 'profile_id', 'id');
|
|
|
|
}
|
|
|
|
|
2018-05-26 22:58:22 +00:00
|
|
|
}
|