I want to show a link if the route is not the current route, however I'm getting an error when I try to include the link.
In my header blade:
<a class="{{ Route::is('start') ? 'active' : '' }}"
href="{{ URL::route('start') }}">Start</a>
In my web.php:
Route::get('/start', 'Start');
I'm getting the error: Route [start] not defined. (View: /var/app/current/resources/views/include/header.blade.php)
My start route works if I go to myurl/start, but when I add it to my header it throws the error. I ultimately want to only display the link on non-start route pages.