Answers for "laravel get url segment"

PHP
1

laravel get url segment

{{ Request::segment(1) }}
Posted by: Guest on November-06-2020
0

get url segment in php

$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'
Posted by: Guest on March-13-2020
0

url segment in laravel

{{ Request::segment(1) }}
Posted by: Guest on September-18-2021

Browse Popular Code Answers by Language