No idea about this, but it should be based off $this->foo and not `DB::table('module')->foo`