Hello, I'm having trouble selecting items from a given category, is returning the following error:
syntax error, unexpected '->' (T_OBJECT_OPERATOR)
my code:
$categorias = DB::table('categorias')->lists('id');
$artigos = DB::table('artigos')->where('categoria_id', '=', array($categorias)->toArray());
#var_dump($artigos);