skip to Main Content

Unable to customize VueDatePicker – Javascript

<template> <VueDatePicker v-model="date" ref="datepicker" /> </template> <script setup> import { ref } from 'vue'; const date = ref(); const datepicker = ref(null); const yourCustomMethod = () => { if (datepicker) { // Close the menu programmatically datepicker.value.closeMenu() } } </script>…

VIEW QUESTION

Ziggy Router Defaulting to Query String – Laravel

I am attempting to access the route "localhost:8000/contact/edit/{contact} in my vue file I am attempting it with <Link :href="route('contact.edit', {contact:contact.id})">Edit Contact</Link> Route in web.php Route::prefix('contact')->group(function() { Route::post('/', [ContactController::class, 'store'])->name('contact.store'); Route::get('/create/{customer}', [ContactController::class, 'create'])->name('contact.create'); Route::get('/edit/{contact}', [ContactController::class, 'edit'])->name('contact.edit'); }); Controller: public function edit(Contact…

VIEW QUESTION
Back To Top
Search