kirkbushell / eloquence

A drop-in library for certain database functionality in Laravel, that allows for extra features that may never make it into the main project.
MIT License
537 stars 60 forks source link

Error when the slug attribute is not defined in the model #105

Closed pktharindu closed 12 months ago

pktharindu commented 12 months ago

When the slug attribute is not defined in the model, it throws a Undefined array key "slug" error.

kirkbushell commented 12 months ago

Using Eloquence to generate or manage slugs, means that the assumption of a slug being present is implicit. Any issues with a slug missing should be solved on the business domain side.