PHPackages                             tait/model-logging - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. tait/model-logging

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

tait/model-logging
==================

027PHP

Since Nov 8Pushed 11y ago1 watchersCompare

[ Source](https://github.com/andytait/model-logging)[ Packagist](https://packagist.org/packages/tait/model-logging)[ RSS](/packages/tait-model-logging/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Model Logging
=====================

[](#laravel-model-logging)

### About

[](#about)

This package provides some convenient defaults for logging actions that occur on models.

For example, if you had an admin system where a number of users could mark orders as pending, approved or cancelled, the package would assist in storing what change had been made to the model, and which user made the change.

This package assumes you're using Eloquent as your ORM.

### Example

[](#example)

Firstly, run the migration to create the "model\_logging" table

```
php artisan migrate --package=tait/model-logging
```

Add the LoggableTrait to a model you want to log actions on

```
