Add name prop to DatePicker component
MODIFY
resources/assets/js/components/DatePicker.vue
resources/assets/js/components/DatePicker.vue
<template>
<div>
- <input type="text" name="date" v-model="form" />
+ <input type="text" :name="name" v-model="form" />
<div class="date-picker">
<div class="date-picker__top">
<button @click="previous">
<script>
export default {
+ props: {
+ name: {
+ default: 'date'
+ }
+ },
+
data() {
return {
displayYear: new Date().getFullYear(),

Add name prop to DatePicker component