mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-14 10:34:31 +00:00
21 lines
302 B
PHP
21 lines
302 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Notification extends Model
|
|
{
|
|
|
|
public function actor()
|
|
{
|
|
return $this->belongsTo(Profile::class, 'actor_id', 'id');
|
|
}
|
|
|
|
public function profile()
|
|
{
|
|
return $this->belongsTo(Profile::class, 'profile_id', 'id');
|
|
}
|
|
|
|
}
|