PHPackages                             novay/log-module - 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. novay/log-module

ActiveLaravel-module[Logging &amp; Monitoring](/categories/logging)

novay/log-module
================

Laravel Logger Package

01HTML

Since Jan 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/novay/log-module)[ Packagist](https://packagist.org/packages/novay/log-module)[ RSS](/packages/novay-log-module/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Activity Logger
=======================

[](#laravel-activity-logger)

[![Latest Stable Version](https://camo.githubusercontent.com/9b0b01f80c82113ac8a2c7fbd2256c8f053a6836e480d1e521be6d74f37c8c15/68747470733a2f2f706f7365722e707567782e6f72672f6e6f7661792f6c6f672d6d6f64756c652f762f737461626c65)](https://packagist.org/packages/novay/log-module)[![Total Downloads](https://camo.githubusercontent.com/bfda21a45e2517e487d3e205ff0bf8b49fe5da723ba4873f5cb0476c6538b1c4/68747470733a2f2f706f7365722e707567782e6f72672f6e6f7661792f6c6f672d6d6f64756c652f646f776e6c6f616473)](https://packagist.org/packages/novay/log-module)[![Travis-CI Build](https://camo.githubusercontent.com/1f996bd42397a6048230d2f0a3f000099a1cdd825380b298ba870cfcfc7fc705/68747470733a2f2f7472617669732d63692e6f72672f6e6f7661792f6c6f672d6d6f64756c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/novay/log-module)[![StyleCI](https://camo.githubusercontent.com/f6cb23e850307d296bed35fa506aa5b5688cd4aaaeea03be6eb070c2cfdeb241/68747470733a2f2f7374796c6563692e696f2f7265706f732f3130393633303732302f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/109630720)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

Table of contents:

- [About](#about)
- [Requirements](#requirements)
- [Installation Instructions](#installation-instructions)
- [Usage](#usage)
- [Features](#features)
- [Screenshots](#screenshots)
- [License](#license)

### About

[](#about)

[This module](https://packagist.org/packages/novay/log-module) is an activity event logger for your Laravel application. It comes out the box with ready to use with dashboard to view your activity. Laravel logger can be added as a middleware or called through a trait. Easily have an Activity Log. This package is easily configurable and customizable. Supports Laravel 5.3, 5.4, 5.5, 5.6, 5.7, 5.8 and 6+.

### Requirements

[](#requirements)

- [Laravel 5.2, 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 6+](https://laravel.com/docs/installation)
- [Modules by nwidart](https://github.com/nwidart/laravel-modules)
- [Modules Installer by joshbrw](https://github.com/joshbrw/laravel-module-installer)

### Installation Instructions

[](#installation-instructions)

1. Install Package Via Composer

```
composer require novay/log-module

```

2. Migrate

```
php artisan module:migrate Log

```

3. Configuration (Next Step)

> This file config can be found on `Module\Config\config.php`. You can enable/disable this module directly from there.

### Usage

[](#usage)

##### Middleware Usage

[](#middleware-usage)

Events for laravel authentication scaffolding are listened for as providers and are enabled via middleware. You can add events to your routes and controllers via the middleware:

```
activity
```

Example to start recording page views using middlware in `web.php`:

```
Route::group(['middleware' => ['web', 'activity']], function () {
    Route::get('/', 'WelcomeController@welcome')->name('welcome');
});
```

> This middlware can be enabled/disabled in the configuration settings.

##### Trait Usage

[](#trait-usage)

Events can be recorded directly by using the trait. When using the trait you can customize the event description.

To use the trait:

1. Include the call in the head of your class file:

```
