How can I implement a segment based url in laravel 4? I tried using it in laravel 3 like URI::segment(1) and it works. I converted my website using laravel 4 but the URI::segment(1) got an error. Any help?
URL segment using Laravel 4
You need to use Larvel Request segment
Request::segment(1);
@Jimbo Here's a link, look for "Retrieve A Request URI Segment" laravel.com/docs/requests –
Starinsky
Here's Laravel 5 approach to use segment https://mcmap.net/q/210019/-laravel-request-all-should-not-be-called-statically –
Buna
© 2022 - 2024 — McMap. All rights reserved.