write test for map
This commit is contained in:
@@ -477,6 +477,7 @@ class RoadPatrolProjectController extends Controller
|
||||
|
||||
public function getAllDataToMap(Request $request)
|
||||
{
|
||||
// dd($request->date_from, $request->date_to, $request->province_id, $request->edare_id);
|
||||
$date_from = $request->date_from ? $request->date_from .' 00:00:00' : Date('Y-m-d') .' 00:00:00';
|
||||
$date_to = $request->date_to ? $request->date_to.' 23:59:59' : (new \DateTime('tomorrow'))->format('Y-m-d').' 23:59:59';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user