Teren-app/app/Providers/AppServiceProvider.php
Simon Pocrnjič 930ac83604 SMS service
2025-10-24 21:39:10 +02:00

36 lines
742 B
PHP

<?php
namespace App\Providers;
use App\Services\Sms\SmsApiSiClient;
use App\Services\Sms\SmsClient;
use Illuminate\Foundation\Application;
use Illuminate\Support\ServiceProvider;
use Inertia\Inertia;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
// Inertia shared
Inertia::share([
'laravelVersion' => Application::VERSION,
'phpVersion' => PHP_VERSION,
]);
// SMS: bind provider client
$this->app->bind(SmsClient::class, SmsApiSiClient::class);
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
//
}
}