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

sbkl's avatar
Level 17

How to define the route with get parameters

Hello,

I try to implement stripe connect with Laravel.

When the account owner accept to connect my app to his account, I have this redirect URI on my website: http://myWebsite.com/stripe/registered?scope=read_write&code=ac_8gsvkMhzesXa1TcBW9i4st2HNm5PadGC

In my routes.php file, I have registered the root '/stripe/registered' but obviously it is not enough.

How should I make it to be able to include the get parameters (scope and code) in my route and access them?

Thank you.

0 likes
2 replies
sbkl's avatar
sbkl
OP
Best Answer
Level 17

Interesting one @tomo_pongrac Will certainly help me for the integration of stripe connect to my app. Also like the concept of named route.

Here is the solution I found:

Route::get('/stripe/registered', function(Request $request){

    return $request::get('code');
});

Please or to participate in this conversation.