New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

chaseconey/laravel-activity

A simple Laravel model activity recording mechanism
86 7

Larablocks Analysis

chaseconey/laravel-activity works with Laravel 5 (latest release 1.0.0, Apr 17, 2015), which reached end of life: no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5, past end of life
  • No release in the last 12 months (last: Apr 17, 2015)
  • 0 downloads a month (needs 10,000)
  • 7 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Apr 17, 2015.
  • No releases in the last 12 months.
  • First released: Apr 17, 2015.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.

Install
composer require chaseconey/laravel-activity
Latest Version:1.0.0
PHP:>=5.4.0
Laravel:5
License:MIT
Last Updated:Jun 30, 2015
Links: GitHub  ·  Packagist
Maintainer: chaseconey

Laravel Activity Logger

StyleCI Latest Stable Version Total Downloads Latest Unstable Version License

A very simple activity logger build specifically for laravel that tracks actions performed by users based on model events.

Inspired by a Laracasts Lesson

Quikstart

  1. Add package to composer.json
"require": {
    "laravel/framework": "5.0.*",
    "chaseconey/laravel-activity": "dev-master"
  }
  1. Add Service Provider to app.php config
'Chaseconey\ActivityRecorder\ActivityProvider'
  1. composer update
  2. Publish the database migration for Activity table
php artisan vendor:publish --provider="Chaseconey\ActivityRecorder\ActivityProvider" --tag="migrations"
  1. php artisan migrate
  2. Add the trait to any model and enjoy!

use Chaseconey\ActivityRecorder\RecordsActivity;

Class Tweet extends Model
{
  use RecordsActivity;
}

Details

This package is supposed to be a sort of drop-in addition to your code base for tracking when a user is performing any model events you want. The information is stored in a table, activities, and an Activity model is also provided for accessing that information.

Customizing Processed Events

By default, created, updated, and deleted events are persisted to the table. You can change which events are processed by adding a static property to the model you have added the trait to:

    
	Class Tweet extends Model
    {
        use RecordsActivity;
        
        /**
		 * Which events to record for the auth'd user.
		 *
		 * @var array
		 */
        protected static $recordEvents = ['created'];
    }
    

Related Packages

ss-ipg/laravel-auditable

Declarative model audit logging for Laravel using PHP attributes

19,248 0
williamug/audited

The only Laravel audit package that ships a complete admin UI — Livewire table,...

2,886 2
oilstone/logging

A PSR\Log wrapper for handling static log classes that can be enabled/disabled o...

8,369 2
deferdie/event

Event management for Laravel 5

16 0
logispot/papertrail

Manage a history of your models simply by adding a package for Laravel

9,615 4

Version History

Version Released PHP Laravel License
1.0.0 >=5.4.0 ~5.0 MIT