I'm pretty new to eloquent and laravel so I am having trouble pulling some information from the database. For starters i have an items table that looks like this
Id type quantity
1 fancy 1 2 prof 5 3 fun 6
I am trying to write something like this:
if fancy equals 0 do not display the button
I am having trouble figuring out how to access the two columns simultaneously so the code knows which type to look at it's quantity.