<?php

namespace App\Modules\Settings\Onboarding\Requests;

use Illuminate\Foundation\Http\FormRequest;

class AckOnboardingModulesRequest extends FormRequest
{
    public function authorize(): bool
    {
        return $this->user()?->can('onboarding.manage') ?? false;
    }

    public function rules(): array
    {
        return [
            'acknowledge' => ['accepted'],
        ];
    }
}
