Skip to content

I am using a livewire component but i am not able to populate data in the fields and in the flags as well  #22

@itsnoman

Description

@itsnoman

Here is my PHP class code.
public function mount() { $this->data['country_code'] = str_replace("+","",optional(user())->country_code); $this->data['phone_no'] = str_replace(optional(user())->country_code,'',optional(user())->phone_no); $this->data['full_no'] = optional(user())->phone_no; }

Here is my livewire blade component
<x-tel-input wire:model="data.phone_no" id="phone" name="phone" class="form-input" /> <input wire:model="data.country_code" type="hidden" id="phone_country" name="phone_country">

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions