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

20 lines
406 B
PHP
Raw Normal View History

<?php
namespace App\Http\Controllers\Download;
2022-07-29 06:47:10 +00:00
use App\Http\Controllers\Controller;
use App\Models\Artist;
2022-07-29 06:47:10 +00:00
use App\Services\DownloadService;
class ArtistController extends Controller
{
2022-07-29 06:47:10 +00:00
public function __construct(private DownloadService $downloadService)
{
}
2018-08-18 11:51:52 +00:00
public function show(Artist $artist)
{
2018-08-18 11:51:52 +00:00
return response()->download($this->downloadService->from($artist));
}
}