Last active
February 8, 2021 21:25
-
-
Save nicolaskempf57/95b9380a57a274fc2b38d0bf9759df51 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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