Closes Module 1: 9 auth endpoints under /api/v1/auth, OTP via SMS (Semaphore + log + fake drivers), role middleware, role + admin seeders, 27 feature tests passing. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
18 lines
391 B
PHP
18 lines
391 B
PHP
<?php
|
|
|
|
namespace App\Services\Sms;
|
|
|
|
use Illuminate\Support\Facades\Log;
|
|
use Illuminate\Support\Str;
|
|
|
|
class LogSmsService implements SmsService
|
|
{
|
|
public function send(string $to, string $message): SmsResult
|
|
{
|
|
$id = (string) Str::uuid();
|
|
Log::info('SMS (log driver)', ['id' => $id, 'to' => $to, 'message' => $message]);
|
|
|
|
return SmsResult::success($id);
|
|
}
|
|
}
|