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
Luis Alonso
Luis Alonso17mo ago
You can generate the preview slug with Str::slug method, whereby spaces are converted to '-'.
Luis Alonso
Luis Alonso17mo ago
Want results from more Discord servers?
Add your server