koel/app/Providers/YouTubeServiceProvider.php
2021-06-05 12:47:56 +02:00

14 lines
310 B
PHP

<?php
namespace App\Providers;
use App\Services\YouTubeService;
use Illuminate\Support\ServiceProvider;
class YouTubeServiceProvider extends ServiceProvider
{
public function register(): void
{
app()->singleton('YouTube', static fn (): YouTubeService => app(YouTubeService::class));
}
}