This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
gtf21
Hi all,
I'm trying to automatically generate a slug when an item is created in the database. I noticed the depends
attribute in the docs and tried to use it but I get a "Mass assignment failed for Model attribute 'name'" error when changing fields from name
(which slug
depends on).
There's also a perpetual loading indicator next to the dependent field (slug
).
I would like to know what I have to do to make it so that the slug
field automatically updates when the name
is changed (the form is currently automatically generated).
Thanks.
1-3 of 3