Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Activity Log Laravel Package

cetiia/laravel-activity-log

Laravel package that automatically records application activity to a logs table after migration and provides an activity-log route to view entries. Includes publishable migrations and optional views; access to the route can be protected via a Gate in AuthServiceProvider.

View on GitHub
Deep Wiki
Context7

This package is for collect all activity log

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Installation

You can install the package via composer:

composer require cetiia/laravel-activity-log

You can publish and run the migrations with:

php artisan vendor:publish --tag="activity-log-migrations"
php artisan migrate

Optionally, you can publish the views using

php artisan vendor:publish --tag="laravel-activity-log-views"

Usage

After migrate automatically save data to the logs table, You can see the route activity-log

Protect the route: Add to app/Providers/AuthServiceProvider.php in boot method

Gate::define('activity-log', function (User $user) {
    // add logic to validate if user can access to route
    // Example using novatopro/lrp (Laravel role permission)
    // return $user->can('access','activity-log'); // activity-log is permission slug
});
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings