Question : get url segment in php
Answered by : uptight-unicorn-wws90qj0e1zs
$uri_path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$uri_segments = explode('/', $uri_path);
echo $uri_segments[0]; // for www.example.com/user/account you will get 'user'
Source : https://stackoverflow.com/questions/5455531/get-second-segment-from-url | Last Update : Fri, 20 Mar 20
Question : laravel get url segment
Answered by : cute-coyote-2g08n7oeehky
{{ Request::segment(1) }}
Source : https://stackoverflow.com/questions/31832819/how-to-access-url-segments-in-blade-in-laravel-5 | Last Update : Fri, 13 Nov 20
Question : url segment in laravel
Answered by : grumpy-goldfinch-m4lyy9hfokac
{{ Request::segment(1) }}
Source : | Last Update : Sat, 25 Sep 21