Support the ongoing development of →
Laravel Routing Artisan
Last updated 1 year ago.

You created a relative link that use the current page as starting point.

In your example, you are on: http://domain.tld/cars/

cars/create result in http://domain.tld/cars/cars/create
/cars/create result in http://domain.tld/cars/create
http://domain.tld/cars/create result in http://domain.tld/cars/create

Another option is to use the url helper.

                href="{{ url('cars/create')}}"
Last updated 1 year ago.

Hello Varun Sharma,

You Can Use This Also

<a href="{{'cars/create'}}">Link</a>


@varun6578 You can simply write like this

<a href="/cars/create" </a>


Sign in to participate in this thread!

Full Stack Europe

Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2023 - All rights reserved.