“Obecna trasa adresu URL Laravel” Kod odpowiedzi

Laravel otrzymuje bieżący adres URL

// Get the current URL without the query string...
echo url()->current();

// Get the current URL including the query string...
echo url()->full();

// Get the full URL for the previous request...
echo url()->previous();
Mohamad

Uzyskaj bieżącą trasę w Blade Laravel

Get the current url

here using the Request::url() method. It will return the entire URL, but strip the query string from it.

<p> Url: {{  Request::url() }} </p>
Output

Url: http://localhost:8000/post/demo
Gblend

Obecny adres URL bez strony URL Laravel

is work
{{Request::path()}}
or
request()->path()
SAMER SAEID

Uzyskaj bieżącą trasę w Blade Laravel

<p> Path: {{ Request::path() }} </p>
Gblend

Obecna trasa adresu URL Laravel

\Route::current()
############### OR ####################
$request->getRequestUri()
Lokesh003Coding

Odpowiedzi podobne do “Obecna trasa adresu URL Laravel”

Pytania podobne do “Obecna trasa adresu URL Laravel”

Więcej pokrewnych odpowiedzi na “Obecna trasa adresu URL Laravel” w PHP

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu