Enabling history

History has to be enabled in the configuration and on every model that should record its changes.
config/admin.php
app/Models/Order.php
Run php artisan admin:migrate after enabling it in the configuration.
Change history of a record
  • Creating a record stores its values, every update stores only the changed fields.
  • Disabled fields are not tracked.
  • The history button of the record lists all changes and lets you preview or delete a version. Fields with changes get a history icon in the form.
  • The first update of a record created before history was enabled stores its previous values first.
  • With history disabled in the configuration, nothing is recorded for any model.

Records without history

Disable history for individual records with hasRowHistory().

Changes made in code

Changes made outside the administration can be stored from code.
With history_actions enabled, viewing, publishing, deleting and sign-ins are logged for every model.