You see, let's imagine that we have a table called Type and imagine that I want to get only the element with value of% co_of% of 3. In that case, I would use this:
$tipo=Tipo::where('id',3)->get();
This would return a vector of a single element with the row of Type whose value of% co_of% is equal to 3.
But I want it to be directly in a variable so I do not have to be putting id
to do any operation with this row.
How do I achieve it?