| Package Data | |
|---|---|
| Maintainer Username: | abidnurulhakim |
| Maintainer Contact: | abidnurulhakim@gmail.com (Abid Nurul Hakim) |
| Package Create Date: | 2017-08-09 |
| Package Last Update: | 2017-09-02 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-04 15:06:07 |
| Package Statistics | |
|---|---|
| Total Downloads: | 162 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 0 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
Laravel Activity Log
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 bidzm/laravel-activity-log
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
]
],
Add the ActivityLogServiceProvider to the providers array in the config/app.php file;
Jenssegers\Mongodb\MongodbServiceProvider::class,
Bidzm\ActivityLog\ActivityLogServiceProvider::class,
php artisan vendor:publish --provider="Bidzm\ActivityLog\ActivityLogServiceProvider" --tag="config"
To subscribe model for activity log just use Bidzm\ActivityLog\Loggable
use Bidzm\ActivityLog\Loggable;
To add usage in your model
use Loggable;
https://github.com/vjlau/laravel-activity-log - Activity Log for Laravel
MIT - http://opensource.org/licenses/MIT