New

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

rockbuzz/lara-activities

Lara Activities is a package that monitors activities for creating, editing, and deleting features, including manipulations of related tables.
5,249 2
Install
composer require rockbuzz/lara-activities
Latest Version:3.1.2
PHP:>=7.3
Laravel:7 – 12
License:MIT
Last Updated:Jul 30, 2025
Links: GitHub  ·  Packagist
Maintainer: rockbuzz

Lara Activities

Lara Activities is a Laravel package that monitors activities for creating, editing, and deleting features, including manipulations of related tables.

Requirements

PHP: >=7.3

Install

$ composer require rockbuzz/lara-activities
$ php artisan vendor:publish --provider="Rockbuzz\LaraActivities\ServiceProvider" --tag=migrations
$ php artisan migrate

Usage


namespace App;

use Illuminate\Database\Eloquent\Model;
use Rockbuzz\LaraActivities\Traits\RecordsActivity;

class Post extends Model
{
    use RecordsActivity;

    //optional define activity table
    //public function __construct(array $attributes = [])
    //{
    //    parent::__construct($attributes);
    //
    //    $this->activityTable = 'post_activities';
    //}
}

Configuration

$ php artisan vendor:publish --provider="Rockbuzz\LaraActivities\ServiceProvider" --tag=config

You can define the layout of the views

'views' => [
    'layout' => 'layouts.admin'
]

You can override routes, controllers and middleware

'routes' => [
    'index' => [
        'uri' => 'admin/activities',
        'as' => 'admin.activities',
        'middleware' => ['web', 'auth'],
        'uses' => 'Rockbuzz\LaraActivities\Controllers\ActivitiesController@index'
    ]
]

You can define which models will be searched in the activity table

'subjects_class' => [
    'App\Post', 'App\Comment'
],

You can also customize the views

$ php artisan vendor:publish --provider="Rockbuzz\LaraActivities\ServiceProvider" --tag=views

You can also customize the lang

$ php artisan vendor:publish --provider="Rockbuzz\LaraActivities\ServiceProvider" --tag=lang

License

The Lara Activities is open-sourced software licensed under the MIT license.

Related Packages

webmachine/logs

Logs for Laravel 5

399 0
metalcoder/logsifier

Package to manage application logs

29 0
aryehraber/statamic-logbook

Manage and view log files in the CP.

238,840 9
aaronheath/class-logger

Simple logging helper trait for use within Laravel classes.

7,556 0

Version History

Version Released PHP Laravel License
3.1.2 >=7.3 ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0 MIT
3.1.1 >=7.3 ^7.0|^8.0|^9.0 MIT
3.1.0 >=7.3 ^7.0|^8.0|^9.0 MIT
3.0.1 >=7.3 ^7.0|^8.0 MIT
3.0.0 >=7.3 ^7.0|^8.0 MIT