Nagraj722
8 months ago

route suggestion

Posted 8 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.