<?php

namespace App\Http\Requests\Member;

use Illuminate\Foundation\Http\FormRequest;

// ══════════════════════════════════════════════════════════════════
//  InPractice — SendJobInterestRequest
//  Location: app/Http/Requests/Member/SendJobInterestRequest.php
//
//  Validates when a member sends interest on a job listing.
//  The cv_profile_id is optional on the job flow — when a job is
//  public, the applicant's CV is auto-resolved from their profile.
//  When sending directly from CV pool, cv_profile_id is required.
// ══════════════════════════════════════════════════════════════════

class SendJobInterestRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'message' => ['nullable', 'string', 'max:500'],
        ];
    }
}
