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

Daniel81
Daniel81

Check out the blog plugin, this does the same thing

jasonwong
jasonwong

I also have the same problem, how to use the attribute of 'depends'?

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.