Laravel Userstamps

screenshot of Laravel Userstamps
laravel

Laravel Userstamps provides an Eloquent trait which automatically maintains `created_by` and `updated_by` columns on your model, populated by the currently authenticated user in your application.

Overview:

The Laravel Userstamps package provides an Eloquent trait for Laravel applications that automatically maintains "created_by" and "updated_by" columns on models, filled with the currently authenticated user. Additionally, when using the Laravel SoftDeletes trait, it handles a "deleted_by" column. The package requires Laravel 5.2 or later with PHP 5.6 or higher.

Features:

  • Automatic Userstamps: Maintains "created_by" and "updated_by" columns on models.
  • SoftDeletes Integration: Handles the "deleted_by" column when using Laravel SoftDeletes trait.
  • Customizable Column Names: Allows customization of userstamp column names.
  • Model Event Listeners: Works by hooking into Eloquent's model event listeners.
  • Helper Relationships: Provides relationships to retrieve the user who created, updated, and deleted the model.
  • Bulk Update Support: Includes helper methods for bulk updates that bypass Eloquent events.
  • Open-Source: Developed and maintained by WILDSIDE.
  • License: Licensed under the MIT license.

Summary:

The Laravel Userstamps package provides a convenient way to maintain userstamps on your models automatically. It integrates smoothly with Laravel's Eloquent ORM and offers customization options for column names. Additionally, it addresses limitations related to bulk updates and deletions by providing helper methods. This open-source package is licensed under the MIT license and is actively developed and maintained by WILDSIDE.

laravel
Laravel

Laravel is a powerful and elegant PHP framework that provides developers with a comprehensive set of tools and features to build robust web applications. It follows the Model-View-Controller (MVC) architectural pattern, offering a clean and organized structure for writing efficient and maintainable code.