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

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -