mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update Bookmark model
This commit is contained in:
parent
884f675d30
commit
83d5fc404d
1 changed files with 12 additions and 1 deletions
|
@ -7,4 +7,15 @@ use Illuminate\Database\Eloquent\Model;
|
|||
class Bookmark extends Model
|
||||
{
|
||||
protected $fillable = ['profile_id', 'status_id'];
|
||||
|
||||
public function status()
|
||||
{
|
||||
return $this->belongsTo(Status::class);
|
||||
}
|
||||
|
||||
|
||||
public function profile()
|
||||
{
|
||||
return $this->belongsTo(Profile::class);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue