koel/app/Http/Controllers/API/Download/AlbumController.php

24 lines
510 B
PHP
Raw Normal View History

<?php
namespace App\Http\Controllers\API\Download;
use App\Http\Requests\API\Download\Request;
use App\Models\Album;
use Download;
class AlbumController extends Controller
{
/**
* Download all songs in an album.
*
* @param Request $request
* @param Album $album
*
2016-06-04 14:17:24 +00:00
* @return \Symfony\Component\HttpFoundation\BinaryFileResponse
*/
public function download(Request $request, Album $album)
{
return response()->download(Download::from($album));
}
}