Since you don't attach the part of your controller that assigns a value to $categorias, one would only guess that it $categoriasis a collection of some model Categoria, if so, then the error is telling you, your property idcategoriadoes not exist in your categories table.
Since you don't attach the part of your controller that assigns a value to
$categorias
, one would only guess that it$categorias
is a collection of some modelCategoria
, if so, then the error is telling you, your propertyidcategoria
does not exist in your categories table.