diff --git a/app/Http/Controllers/Admin/TorrentController.php b/app/Http/Controllers/Admin/TorrentController.php deleted file mode 100644 index 3806d94..0000000 --- a/app/Http/Controllers/Admin/TorrentController.php +++ /dev/null @@ -1,40 +0,0 @@ - $hentai_id - ]); - } - - /** - * Add Torrent. - */ - public function store(Request $request): \Illuminate\Http\RedirectResponse - { - $validated = $request->validate([ - 'hentai_id' => 'required|exists:hentais,id', - 'torrent_url' => 'required|string|max:256', - 'torrent_episodes' => 'required|string|max:8', - ]); - - Torrents::create([ - 'hentai_id' => $request->hentai_id, - 'torrent_url' => $request->torrent_url, - 'episodes' => $request->torrent_episodes, - ]); - - return to_route('download.search'); - } -} diff --git a/app/Models/Hentai.php b/app/Models/Hentai.php index e043383..f17bd6f 100644 --- a/app/Models/Hentai.php +++ b/app/Models/Hentai.php @@ -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; diff --git a/app/Models/Torrents.php b/app/Models/Torrents.php deleted file mode 100644 index e75af0f..0000000 --- a/app/Models/Torrents.php +++ /dev/null @@ -1,22 +0,0 @@ - -