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

16 lines
345 B
PHP
Raw Normal View History

2024-01-03 17:02:18 +00:00
<?php
namespace App\Http\Controllers\Download;
use App\Http\Controllers\Controller;
use App\Models\Artist;
use App\Services\DownloadService;
class DownloadArtistController extends Controller
{
public function __invoke(Artist $artist, DownloadService $download)
{
return response()->download($download->from($artist));
}
}