Current route showing null Laravel -


i new laravel. using laravel 5.4. purpose, need current route. this, using following code in controller.

  $name = route::currentroutename();    dd($name); 

but, showing null. appreciated.

i don't know what's problem code can url of current route following way well,

$name = url::current(); 

to view value can dump $name,

dd($name); 

Comments

Popular posts from this blog

javascript - WinJS appendTextAsync producing scheduler errors -

minify - Minimizing css files -

Sockets with kotlin -