koel/app/Http/Controllers/API/Download/AlbumController.php
2016-08-16 23:12:35 +08:00

23 lines
448 B
PHP

<?php
namespace App\Http\Controllers\API\Download;
use App\Models\Album;
use Download;
class AlbumController extends Controller
{
/**
* Download all songs in an album.
*
* @param Album $album
*
* @throws \Exception
*
* @return \Symfony\Component\HttpFoundation\BinaryFileResponse
*/
public function download(Album $album)
{
return response()->download(Download::from($album));
}
}