skip to Main Content

Laravel – Access information with nested validation request

I want to access information within nested validation array to do a custom validation, here is my code: return [ ..., 'amount' => ['nullable', 'numeric'], 'currency_id' => ['nullable', 'integer', Rule::in($allowedCurrencyIds)], 'details' => ['nullable'], 'details.*.product_id' => ['required', 'integer', 'exists:products,id'], 'details.*.product_collection_id' =>…

VIEW QUESTION

Asp.net – The value '' is not valid for

I have a Blazor web application which uses System.ComponentModel.DataAnnotations attribute for validation in a registration form. I have a property named NationalCode which is nullable long I did not added [Required] attribute above my NationalCode property But when I want…

VIEW QUESTION
Back To Top
Search