update: queries

This commit is contained in:
HDVinnie
2020-05-26 13:22:18 -04:00
parent 5bc20e40c7
commit 3d3de56ccb
10 changed files with 39 additions and 39 deletions
@@ -56,7 +56,7 @@ class TorrentController extends BaseController
*/
public function index()
{
return new TorrentsResource(Torrent::with(['category', 'tags'])->latest()->paginate());
return new TorrentsResource(Torrent::with(['category', 'type', 'tags'])->latest()->paginate());
}
/**
@@ -119,7 +119,7 @@ class TorrentController extends BaseController
$torrent->tmdb = $request->input('tmdb');
$torrent->mal = $request->input('mal');
$torrent->igdb = $request->input('igdb');
$torrent->type = $request->input('type');
$torrent->type = $request->input('type_id');
$torrent->anon = $request->input('anonymous');
$torrent->stream = $request->input('stream');
$torrent->sd = $request->input('sd');
@@ -148,7 +148,7 @@ class TorrentController extends BaseController
'tmdb' => 'required|numeric',
'mal' => 'required|numeric',
'igdb' => 'required|numeric',
'type' => 'required',
'type_id' => 'required',
'anon' => 'required',
'stream' => 'required',
'sd' => 'required',