Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

How to get current url in laravel

//get current url
use IlluminateSupportFacadesRoute;
Route::getFacadeRoot()->current()->uri();
//get current full url
$url = url()->current();
 
PREVIOUS NEXT
Tagged: #How #current #url #laravel
ADD COMMENT
Topic
Name
4+1 =