vjlau/laravel-activity-log
Larablocks Analysis
vjlau/laravel-activity-log has no release yet to check Laravel compatibility against.
Recommendation checks
Use with careUse with care: meets 0 of 3 checks.
- No dated releases
- 0 downloads a month (needs 10,000)
- 2 GitHub stars (needs 100)
Data from Packagist and GitHub, checked by Larablocks on Nov 25, 2026.
| Install | |
|---|---|
composer require vjlau/laravel-activity-log:dev-master |
|
| PHP: | >=5.5.9 |
| License: | MIT |
| Last Updated: | Sep 2, 2017 |
| Links: | GitHub · Packagist |
laravel-activity-log
Laravel Activity Log
Installation
Make sure you have the MongoDB PHP driver installed. You can find installation instructions at http://php.net/manual/en/mongodb.installation.php
Install through Composer
composer require vjlau/laravel-activity-log
Configuration
And add a new mongodb connection config/database.php:
'mongodb' => [
'driver' => 'mongodb',
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', 27017),
'database' => env('DB_DATABASE'),
'username' => env('DB_USERNAME'),
'password' => env('DB_PASSWORD'),
'options' => [
'database' => 'admin' // sets the authentication database required by mongo 3
]
],
Setup
Step 1: Register the Service Provider
Add the ActivityLogServiceProvider to the providers array in the config/app.php file;
Jenssegers\Mongodb\MongodbServiceProvider::class,
VJLau\ActivityLog\ActivityLogServiceProvider::class,
VJLau\ActivityLog\QueryLogServiceProvider::class,
Step 2: Publish config
php artisan vendor:publish --provider="VJLau\ActivityLog\ActivityLogServiceProvider" --tag="config"
Usage
To subscribe model for activity log just use VJLau\ActivityLog\Loggable
use VJLau\ActivityLog\Loggable;
To add usage in your model
use Loggable;
To add middleware in your kernel
protected $routeMiddleware = [
......
'log.request' => \VJLau\ActivityLog\Middleware\LogAfterRequest::class,
];
Credits
https://github.com/leomarquine/activity-log - Activity Log for Laravel Eloquent Models