PHPackages                             siduko/laravel-activitylog - 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. siduko/laravel-activitylog

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

siduko/laravel-activitylog
==========================

This laravel 5 package provides to log the activity of the users

07PHP

Since Oct 25Pushed 9y ago1 watchersCompare

[ Source](https://github.com/siduko/laravel-activitylog)[ Packagist](https://packagist.org/packages/siduko/laravel-activitylog)[ RSS](/packages/siduko-laravel-activitylog/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel 5 Activity Log
======================

[](#laravel-5-activity-log)

[![Latest Version on Packagist](https://camo.githubusercontent.com/39ffcc0338aa47fd58a5b3f4c8f85a2b8c1650165cd9a69a8a22c5b8eba7edb5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736964756b6f2f6c61726176656c2d61637469766974796c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/siduko/laravel-activitylog)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/e05b8c6e727649e881d784754705023b0ec673e0a96968e45067e2d17106e6ad/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f736964756b6f2f6c61726176656c2d61637469766974796c6f672f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/siduko/laravel-activitylog)[![Coverage Status](https://camo.githubusercontent.com/2d30f92d10b455b8c1e15cfd61474cb6dd147b1ace24592694f1e86e2294ff43/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f736964756b6f2f6c61726176656c2d61637469766974796c6f672e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/siduko/laravel-activitylog/code-structure)[![Quality Score](https://camo.githubusercontent.com/01f189928cc6b5fd8d2c76bb8779bc3858c5acf8d094f0048c308662d40408aa/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f736964756b6f2f6c61726176656c2d61637469766974796c6f672e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/siduko/laravel-activitylog)[![Total Downloads](https://camo.githubusercontent.com/17c415e5a8b20b83730285d7a7f3ef6c70f452d6c4556688295da4175c821772/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736964756b6f2f6c61726176656c2d61637469766974796c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/siduko/laravel-activitylog)

This laravel 5 package provides to log the activity of users. It can also automatically log model events, custom message log. You can custom log handler to saving another destination Unless you can use built in handler as EloquentHandler (using database ) or LogHandler (using log)

Install
-------

[](#install)

Via Composer

```
$ composer require siduko/laravel-activitylog
```

Or add `composer.json`

```
"require": {
    '...',
    "siduko/laravel-activitylog":"v1.0-dev"
}
```

Usage
-----

[](#usage)

Install the service provider to `config.php`

```
// config/app.php

'providers' => [
    '...',
    \LaiVu\ActivityLog\ActivityLogServiceProvider::class,
],

'aliases' => [
    '...',
    'ActivityLog'=>\LaiVu\ActivityLog\ActivityLogFacade::class,
],
```

You can publish the migration with:

```
php artisan vendor:publish --provider="LaiVu\ActivityLog\ActivityLogServiceProvider" --tag="migrations"
```

After you run migration

```
php artisan migrate
```

You can optionally publish the config file with:

```
php artisan vendor:publish --provider="LaiVu\ActivityLog\ActivityLogServiceProvider" --tag="config"
```

Default config

```
