Closed constb closed 8 years ago
are you sure Sluggable::getRouteKey returns right value? its name suggests it should return field name, but you are returning $this->slug i.e. a value...
Sluggable::getRouteKey
$this->slug
Hmmm, tbh I'm not sure. I mean I've been using the system for at least 18 months now on our platform at work and had zero problems.
Yup, it's correct - the base method returns an attribute value.
are you sure
Sluggable::getRouteKey
returns right value? its name suggests it should return field name, but you are returning$this->slug
i.e. a value...