SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘AREA-6557-43’ for key ‘areas_name_program_id_unique’ [closed]

class Area extends Model 
{
   

    protected static function rules(): array
    {
        return [
            'program_id' => 'required|integer|exists:programs,id',
            'name' => [
                'required',
                'string',
                'max:191',
                Rule::unique('areas', 'name')
                    ->where('program_id', request()->input('program_id'))
                    ->ignore(request()->route('record')),
            ],
            'status' => 'required|boolean',
        ];
    }
}

request()->input('program_id') is not bringing me the program id of the filament 3.2 form to create a new area in AreaResources

request()->input('program_id') should bring an integer id for example 43