I have a laravel application with a database. I want to make the rows in the database unique so that if someone tries to insert anything into the database when the website is running, an error is shown. The site is about TV's. I have a condition, TV and colour column in the data table. If someone inputs another exact row, I want the application to throw an error because I get duplicate data in the table. I believe I require a query looking like this: SELECT where 'TV', 'condition', 'colour', like INPUT get () Any help would be appreciated
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2oYp8bU
via IFTTT
Aucun commentaire:
Enregistrer un commentaire