Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

yassin98010's avatar

passing date into GET request

hello i have this route :

Route::Get('link/{date},'controller@method')

how can i pass parameter with date format like this 12.05.2015 to the method of controller ? thank u

0 likes
2 replies
bestmomo's avatar

Hello,

Just encode it with encodeURIComponent Javascript function.

yassin98010's avatar

@bestmomo it a web service that will be called by this uri and it will be called by an application matlab that can't use JavaScript

Please or to participate in this conversation.