Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

Developers Map

How to create a slug route excluding some slug in laravel routing?

  • 1

Laravel is a most common framework. it is very easy to use and learn.if you want to use route in laravel like slug and you want to match that slug for specific string then you should use below code.

Use below Code :

    ->where('slug', '([a-zA-Z0-9-]+)')
Leave an answer

Leave an answer