koel/app/Http/Controllers/Download/PlaylistController.php

16 lines
305 B
PHP
Raw Normal View History

<?php
namespace App\Http\Controllers\Download;
use App\Models\Playlist;
class PlaylistController extends Controller
{
2018-08-18 11:51:52 +00:00
public function show(Playlist $playlist)
{
2016-06-04 13:29:45 +00:00
$this->authorize('owner', $playlist);
2018-08-18 11:51:52 +00:00
return response()->download($this->downloadService->from($playlist));
}
}