Files
dreamstudio/app/Providers/AppServiceProvider.php
T

29 lines
596 B
PHP
Raw Normal View History

<?php
namespace App\Providers;
use App\Services\Runware\RunwareClient;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
$this->app->singleton(RunwareClient::class, fn () => new RunwareClient(
apiKey: (string) config('runware.api_key'),
baseUrl: (string) config('runware.base_url'),
));
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
//
}
}