protected function builder() { $table = is_null($this->table) ? $this->getTableName : $this->table; return \DB::table($table); }