santino
3 months ago

RRoute:is HELP

Posted 3 months ago by santino

Please I am trying to use

<a href="{{ route('lesson' , [ $course->slug , $lesson->slug ] ) }}" class="
	{{ Route::is('lesson', [ $course->slug , $lesson->slug ] ) ? 'text-primary font-weight-bold' : 'text-danger' }}
	">
	<i class="bx bxs-videos"></i>
	{{ $lesson->tittle }}
</a>

,y final URL is this one http://localhost:3000/courses/sopas-de-la-abuela-felices/gracias-por-venir

enter course name slug then lesson slug, and is the same but nothing happens the Route do not match...

This is inside a FOREACH because this render a list of links video lesson

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