mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
20 lines
318 B
PHP
20 lines
318 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
class Thank extends NexusModel
|
|
{
|
|
protected $fillable = ['torrentid', 'userid'];
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo(User::class, 'userid');
|
|
}
|
|
|
|
public function torrent()
|
|
{
|
|
return $this->belongsTo(Torrent::class. 'torrentid');
|
|
}
|
|
}
|