Skip to content

Instantly share code, notes, and snippets.

@nicolaskempf57
Last active February 8, 2021 21:25
Show Gist options
  • Save nicolaskempf57/95b9380a57a274fc2b38d0bf9759df51 to your computer and use it in GitHub Desktop.
Save nicolaskempf57/95b9380a57a274fc2b38d0bf9759df51 to your computer and use it in GitHub Desktop.
<?php
Route::get('/path/{start?}/{end?}', function ($start = null, $end = null)
{
if (!$start) {
// set start
}
if (!$end) {
// set end
}
// do other stuff
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment