feat: subscriptions
CI / 🧪 Tests Laravel (push) Successful in 2m48s
CI / 🐳 Build & Push Image (push) Successful in 3m0s

This commit is contained in:
2026-08-07 11:53:46 +02:00
parent 99cb0e63e6
commit 2ece4b6e3e
51 changed files with 1489 additions and 254 deletions
@@ -0,0 +1,37 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rules\File;
class StoreIdentityVerificationRequest extends FormRequest
{
public function authorize(): bool
{
$user = $this->user();
return $user?->hasPurchasedCertification() === true
&& $user->account_verified_at === null;
}
public function rules(): array
{
return [
'document' => [
'required',
File::types(['jpg', 'jpeg', 'png', 'pdf'])->max('10mb'),
'mimetypes:image/jpeg,image/png,application/pdf',
],
];
}
public function messages(): array
{
return [
'document.required' => __('api.certification.document_required'),
'document.mimetypes' => __('api.certification.document_type'),
'document.max' => __('api.certification.document_max'),
];
}
}