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

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -