I have the following data in a pivot table,
estado| tipo
libre | moto
libre | camioneta
libre | furgón
en uso| moto
libre | bicicleta
en uso| camioneta
So far I have only the basic query, I've tried anyway but I can not find the result, I'm using Laravel 5.4, but while I'm doing tests with phpmyadmin
SELECT * FROM 'cometido_vehiculo' WHERE estado = 0
and I need to get the types that are free is to say "Van and bicycle" When I do the query, I get the following result: "motorcycle, van, van, bicycle" any ideas? Edit the previous question because I did not know how to explain it well, greetings