@if (Route::has('home')) laravel code example Example: laravel get current route name Route::currentRouteName()