Datatables Editor View only a specific year
Datatables Editor View only a specific year
![cmplus](https://secure.gravatar.com/avatar/1a31d86533ec8c2d35a9ddd8497210ed/?default=https%3A%2F%2Fvanillicon.com%2F1a31d86533ec8c2d35a9ddd8497210ed_200.png&rating=g&size=120)
If I want to filter the data and display only one year, I'm trying to create a variable and call it in the controller but it doesn't work I always see everything that is present in the table. How do I filter them? I want to see only a specific year and maybe a specific month, is it possible to do that?
$ticket2023 = Ticket::whereYear('created_at', Carbon::now()->year(2023))->get();
$data = Editor::inst($ticket2023)
->fields(
This discussion has been closed.