Jason Miller
Bearbeitet vor 5 Monaten

#laraveltip how to validate date in submit form❓️ Here is the simple example of validating different types of dates passed from submit form:

                    <?php
// eventDate = 16/02/2000
$request->validate([
	'eventDate' => 'required|date_format:d/m/Y',
]);
?>