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
<?php | |
trait TracksHistoryTrait | |
{ | |
protected function track(Model $model, callable $func = null, $table = null, $id = null) | |
{ | |
// Allow for overriding of table if it's not the model table | |
$table = $table ?: $model->getTable(); | |
// Allow for overriding of id if it's not the model id | |
$id = $id ?: $model->id; |