for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?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);
});
}