Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

get current url in controller in laravel

//get current url
use IlluminateSupportFacadesRoute;
Route::getFacadeRoot()->current()->uri();
//get current full url
$url = url()->current();
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #current #url #controller #laravel
ADD COMMENT
Topic
Name
2+3 =