Created
May 26, 2015 01:57
-
-
Save sniper7kills/15730618d833748409a5 to your computer and use it in GitHub Desktop.
Code for arvind132
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private $historyLimit=500; | |
public function postSave() | |
{ | |
if (isset($this->historyLimit) && $this->revisionHistory()->count() >= $this->historyLimit){ | |
$LimitReached=true; | |
}else{ | |
parent::postSave(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@arvind132 You should be able to use this code in your model to get the revision functionality you are looking for.