Download the PHP package salvation/laravel-activitylog-mongodb without Composer
On this page you can find all versions of the php package salvation/laravel-activitylog-mongodb. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download salvation/laravel-activitylog-mongodb
More information about salvation/laravel-activitylog-mongodb
Files in salvation/laravel-activitylog-mongodb
Package laravel-activitylog-mongodb
Short Description A very simple activity logger to monitor the users of your website or application
License MIT
Homepage https://github.com/mostafamaklad/laravel-activitylog-mongodb
Informations about the package laravel-activitylog-mongodb
Log activity inside your Laravel app
The spatie/laravel-activitylog
package provides easy to use functions to log the activities of the users of your app. It can also automatically log model events.
The Package stores all activity in the activity_log
table.
Here's a demo of how you can use it:
You can retrieve all activity using the Spatie\Activitylog\Models\Activity
model.
Here's a more advanced example:
Here's an example on event logging.
Calling $activity->changes()
will return this array:
Support us
Learn how to create a package like this one, by watching our premium video course:
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
Documentation
You'll find the documentation on https://docs.spatie.be/laravel-activitylog.
Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving the activity log? Feel free to create an issue on GitHub, we'll try to address it as soon as possible.
If you've found a security issue please mail [email protected] instead of using the issue tracker.
Installation
You can install the package via composer:
The package will automatically register itself.
You can publish the migration with:
Note: The default migration assumes you are using integers for your model IDs. If you are using UUIDs, or some other format, adjust the format of the subject_id and causer_id fields in the published migration before continuing.
After publishing the migration you can create the activity_log
table by running the migrations:
You can optionally publish the config file with:
This is the contents of the published config file:
Changelog
Please see CHANGELOG for more information about recent changes.
Upgrading
Please see UPGRADING for details.
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Freek Van der Herten
- Sebastian De Deyne
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-activitylog-mongodb with dependencies
illuminate/config Version ^6.0 || ^7.0 || ^8.0
illuminate/database Version ^6.0 || ^7.0 || ^8.0
illuminate/support Version ^6.0 || ^7.0 || ^8.0
jenssegers/mongodb Version ^3.6