mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 03:34:22 -05:00
updadte: subtitle controller
- increment downloads counter
This commit is contained in:
@@ -162,6 +162,10 @@ class SubtitleController extends Controller
|
||||
// Place temp file
|
||||
file_put_contents(public_path().'/files/tmp/'.$temp_filename, $subtitle_file);
|
||||
|
||||
// Increment doownloads count
|
||||
$subtitle->downloads = ++$subtitle->downloads;
|
||||
$subtitle->save();
|
||||
|
||||
return response()->download(public_path('files/tmp/'.$temp_filename))->deleteFileAfterSend(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user