Skip to content

Instantly share code, notes, and snippets.

@nickels
Last active May 20, 2017 09:06
Show Gist options
  • Select an option

  • Save nickels/3493204e83a63776531460815829a1be to your computer and use it in GitHub Desktop.

Select an option

Save nickels/3493204e83a63776531460815829a1be to your computer and use it in GitHub Desktop.
Laravel | Date Validation Tricks
<?php
$this->validate($request, [
'start_date' => 'date_format:d/m/Y|after:tomorrow',
'end_date' => 'date_format:d/m/Y|after:start_date',
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment