mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
finish elastic
This commit is contained in:
@@ -8,4 +8,14 @@ class Bookmark extends NexusModel
|
||||
protected $table = 'bookmarks';
|
||||
|
||||
protected $fillable = ['userid', 'torrentid'];
|
||||
|
||||
public function torrent()
|
||||
{
|
||||
return $this->belongsTo(Torrent::class, 'torrentid');
|
||||
}
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(Torrent::class, 'userid');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user