koel/app/Providers/YouTubeServiceProvider.php
2018-08-29 11:06:17 +07:00

16 lines
345 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 function (): YouTubeService {
return app(YouTubeService::class);
});
}
}