Remove torrents system

This commit is contained in:
2025-09-22 13:34:52 +02:00
parent c0a22e875c
commit bc193c7141
8 changed files with 24 additions and 130 deletions

View File

@@ -32,11 +32,6 @@ class Hentai extends Model implements Sitemapable
return $this->hasMany(Episode::class, 'hentai_id');
}
public function torrents()
{
return $this->hasMany(Torrents::class, 'hentai_id');
}
public function title(): String
{
return $this->episodes->first()->title;

View File

@@ -1,22 +0,0 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Torrents extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*
* @var string[]
*/
protected $fillable = [
'hentai_id',
'torrent_url',
'episodes',
];
}