-
app/Models/Complaint.php
Open in GitHubuse Illuminate\Database\Eloquent\Model; class Complaint extends Model { // protected $casts = [ 'register_date'=>'datetime' ]; // }
-
resources/js/Pages/Complaint/Index.vue
Open in GitHub<template> // <Column field="register_date" header="Date" filterMatchMode="contains"> <!--Filter--> <template #filter> <InputText type="text" v-model="filters['register_date']" class="flex w-full border-gray-300 rounded-md" placeholder="Search by date"/> </template> <!--Content--> <template #body="slotProps"> <span class="p-column-title">Date</span> {{slotProps.data.date}} </template> </Column> // </template> //