Hey Everybody!
I'm using Laravel with SoftDeletes and need a unique constraint on the combination of product_id and type_id. When I soft delete a record and try to insert the same combination again, the database throws a unique constraint error, even though the original record is soft deleted. While soft deletes aren't immediately required, I may need to recover deleted data in the future. How can I structure this to prevent the unique constraint issue while still allowing future data recovery if necessary?
Any suggestions on the best approach please.
•
•
I'm looking to learn how to create a Single Page Application (SPA) using Laravel, but I'm a bit unsure whether I should start with Laravel Inertia or Livewire. I would really appreciate any advice on which approach might be better suited for a beginner in SPA development.
Thank you!
•
Thank you all for the response. This will help me to decide the stack.