skip to Main Content

Laravel – Livewire component update with new data

I need help with the Livewire component update based on the select dropdown. class FutureTreeMapChart extends Component { public $segment = 'N50'; public $expiry = '2024-02-25'; public $data; public function fetchTreeMap() { if (!empty($this->segment) && !empty($this->expiry)) { .....some codes to…

VIEW QUESTION

Laravel – Livewire dispatching event modal with a dynamic content

Im trying to show the user the times when he's available by days and display them in a modal. public function searchAvailability(){ $this->validate(); $doctor = Doctor::where('id',$this->selectedDoctor)->first(); $doctorTimes = DoctorTime::where('doctor_id',$this->selectedDoctor)->get(); $parsedDate = Carbon::parse($this->selectedDate); $dayName = $parsedDate->format('l'); if ($parsedDate->isFuture()) { foreach($doctorTimes as…

VIEW QUESTION

Laravel – DatePicker formatting filament v3

Package Version v3.0.0 DatePicker::make('reservation_date') ->label('Rezervasyon Tarihi') ->live(onBlur: true) I went to DatePicker component inside and add: public static string $defaultDateDisplayFormat = "d/m/Y"; However its still showing as "mm/dd/YYYY" on input before selection and after. Is there a solution for me…

VIEW QUESTION
Back To Top
Search