Handle Query Exception
I have a slug column in db table but it dosen't exist on the form and generated by spatie/laravel-sluggable . how can I check either the slug is unique before creating the model in Filament resource or how can I handle query exception to show the notification
3 Replies
You can generate the preview slug with Str::slug method, whereby spaces are converted to '-'.
