get curerrnt url laravel code example
Example 1: current url route laravel
\Route::current()
############### OR ####################
$request->getRequestUri()
Example 2: laravel get old url
str_replace(url('/'), '', url()->previous())
\Route::current()
############### OR ####################
$request->getRequestUri()
str_replace(url('/'), '', url()->previous())