route suggestion

Posted 5 months ago by Nagraj722

I need a route like Route::get('{category}-suppliers-{country}',function($supl, $data){ return 'Done'; });

Here my problem is, category should be slug like "abc-efgh-ijkl" http://localhost/laravel/abc-efgh-ijkl-suppliers-usa

please suggest me any way to do that or else any other solutions without using '/' like http://localhost/laravel/abc-efgh-ijkl/suppliers/usa

Thanks,

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

Reply to

Use Markdown with GitHub-flavored code blocks.