Support the ongoing development of Laravel.io →
Requests Input Blade
Last updated 2 years ago.
0

Hi, unfortunately I'm not sure how to do this using a Laravel Facade but someone else might be able to help with that. If not the code below will work.

<?php echo $_GET['page']; ?>
Last updated 2 years ago.
0

Or the laravel way:

$segment = Request::segment(3);
Last updated 2 years ago.
0

psychonetic said:

Or the laravel way:

$segment = Request::segment(3);

Thanks psychotic, that will come in handy for me too!

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.