frdmn
1427
8
Lumen

Lumen - current route in view

Posted 4 years ago by frdmn

Hello,

I try to display the current route name in a view and was using something along the lines {{ Route::getCurrentRoute()->getActionName() }} and in my routes.php:

use Illuminate\Support\Facades\Route;

However, this throws the following error:

Fatal error: Call to undefined function getCurrentRoute() 

Can someone point me in the right direction?

Please sign in or create an account to participate in this conversation.