maintanance and downloading files.
This commit is contained in:
18
app/Http/Controllers/ChapterController.php
Normal file
18
app/Http/Controllers/ChapterController.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Http\SymfonyCastDl\SymfonyCastDlService;
|
||||
use App\Models\Chapter;
|
||||
|
||||
class ChapterController extends Controller
|
||||
{
|
||||
public function index(Chapter $chapter, SymfonyCastDlService $symfonyCastDlService)
|
||||
{
|
||||
$symfonyCastDlService->videoSize($chapter);
|
||||
$symfonyCastDlService->downloadFile($chapter);
|
||||
// $symfonyCastDlService->videoSize($chapter);
|
||||
// file_put_contents('movie.avi', file_get_contents($chapter->video_link));
|
||||
dd($chapter->toArray());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user