Bug when using magic getters.
Bug when using magic getters.

My model has the create method overridden. The event listener fires the sluggify and it doesn't seem to like empty() being called on the magic getter. However this fixed the issue.

The only possible side effect is if someone has created a getSlugAttribute() mutator, but this would be undesirable anyway as the slug should be saved in a queryable / searchable state. Ie processed on save not on retrieval.
EspadaV8/eloquent-sluggable,cviebrock/eloquent-sluggable