mirror of
https://github.com/koel/koel
synced 2024-12-22 02:23:14 +00:00
16 lines
484 B
PHP
16 lines
484 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Download;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Http\Requests\Download\DownloadSongsRequest;
|
|
use App\Repositories\SongRepository;
|
|
use App\Services\DownloadService;
|
|
|
|
class DownloadSongsController extends Controller
|
|
{
|
|
public function __invoke(DownloadSongsRequest $request, DownloadService $download, SongRepository $repository)
|
|
{
|
|
return response()->download($download->from($repository->getMany($request->songs)));
|
|
}
|
|
}
|