2021-05-15 19:29:44 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Thank extends NexusModel
|
|
|
|
|
{
|
2022-03-30 15:37:11 +08:00
|
|
|
protected $fillable = ['torrentid', 'userid'];
|
|
|
|
|
|
2021-05-15 19:29:44 +08:00
|
|
|
public function user()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(User::class, 'userid');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function torrent()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(Torrent::class. 'torrentid');
|
|
|
|
|
}
|
|
|
|
|
}
|