public function getCloneExemptAttributes() {

		// Always make the id and timestamps exempt
		$defaults = [
			$this->getKeyName(),
			$this->getCreatedAtColumn(),
			$this->getUpdatedAtColumn(),
		];

		// Include the model count columns in the exempt columns
		$count_columns = array_map(function($count_column) {
		    return $count_column . '_count';
        	}, $this->withCount);

		$defaults = array_merge($defaults, $count_columns);

		// It none specified, just return the defaults, else, merge them
		if (!isset($this->clone_exempt_attributes)) return $defaults;
		return array_merge($defaults, $this->clone_exempt_attributes);
	}
public function getCloneExemptAttributes() {

		// Always make the id and timestamps exempt
		$defaults = [
			$this->getKeyName(),
			$this->getCreatedAtColumn(),
			$this->getUpdatedAtColumn(),
		];

		// Include the model count columns in the exempt columns
		$count_columns = array_map(function($count_column) {
		    return $count_column . '_count';
        	}, $this->withCount);

		$defaults = array_merge($defaults, $count_columns);

		// It none specified, just return the defaults, else, merge them
		if (!isset($this->clone_exempt_attributes)) return $defaults;
		return array_merge($defaults, $this->clone_exempt_attributes);
	}
public function getCloneExemptAttributes ( ) { // Always make the id and timestamps exempt $ defaults = [ $ this -> getKeyName ( ) , $ this -> getCreatedAtColumn ( ) , $ this -> getUpdatedAtColumn ( ) , ] ; // Include the model count columns in the exempt columns $ count_columns = array_map ( function ( $ count_column ) { return $ count_column . '_count' ; } , $ this -> withCount ) ; $ defaults = array_merge ( $ defaults , $ count_columns ) ; // It none specified, just return the defaults, else, merge them if ( ! isset ( $ this -> clone_exempt_attributes ) ) return $ defaults ; return array_merge ( $ defaults , $ this -> clone_exempt_attributes ) ; }
Return the list of attributes on this model that should be cloned

@return  array
Return the list of attributes on this model that should be cloned