mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
torrent api + swip constants
This commit is contained in:
17
app/Models/Thank.php
Normal file
17
app/Models/Thank.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
|
||||
class Thank extends NexusModel
|
||||
{
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'userid');
|
||||
}
|
||||
|
||||
public function torrent()
|
||||
{
|
||||
return $this->belongsTo(Torrent::class. 'torrentid');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user