app/Http/Requests/ProfileUpdateRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'firstName' => ['required', 'string', 'min:2', 'max:255'],
            'lastName' => ['required', 'string', 'min:2', 'max:255'],
            'dob' => ['nullable', 'date'],
            'email' => ['required', 'string', 'email', 'max:255'],
        ];
    }
public function rules ( ) { return [ 'firstName' => [ 'required' , 'string' , 'min:2' , 'max:255' ] , 'lastName' => [ 'required' , 'string' , 'min:2' , 'max:255' ] , 'dob' => [ 'nullable' , 'date' ] , 'email' => [ 'required' , 'string' , 'email' , 'max:255' ] , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .