david19
10 months ago
227
3
Laravel

RouteKeyName with +-/*

Posted 10 months ago by david19

I have a category_slug as Routekeyname.

public function getRouteKeyName()
  {


      return 'category_slug';

    }

This works great!! But, when i use special characters it works not. Examples in the Category_slug Column:

T-Shirt, AB/CD, and more....Can i fix this? :) Many thanks

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