@rf1234 I SOLVED I LOVE U!
probably a curly brace is missing:
->where( function ($q) { if ( isset($_POST['startDate']) ) { $q->where( 'data_di_scarico', $_POST['startDate'] ); } } )
Yes this is the problem!
It looks like you're new here. If you want to get involved, click one of these buttons!
Answers
@rf1234 I SOLVED I LOVE U!
probably a curly brace is missing:
Yes this is the problem!