moztopia/lavackage

A Laravel 12+ Package used for helpers, commands, and other common tools.

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/moztopia/lavackage

0.1.0 2025-11-15 08:42 UTC

This package is auto-updated.

Last update: 2026-01-15 09:02:29 UTC


README

Moztopia Lavackage is a Laravel 11+ package offering contributor-friendly commands, logging utilities, and shared framework helpers. Designed for clarity, reversibility, and ergonomic workflows.

πŸš€ Installation

composer require moztopia/lavackage

Lavackage uses Laravel's auto-discovery, so no manual provider registration is needed.

πŸ› οΈ Available Commands

lavackage:log

Manage Laravel's default log file with clear, reversible options:

php artisan lavackage:log [--clear] [--backup] [--threshold=LEVEL]
  • --clear β†’ wipes laravel.log safely
  • --backup β†’ creates a timestamped backup before clearing
  • --threshold=LEVEL β†’ filters log entries by severity (info, warning, error, etc.)

πŸ§ͺ Testing

Lavackage uses Pest + Testbench for isolated Laravel testing:

./vendor/bin/pest

All tests run inside a temporary Laravel sandbox β€” no files are written to your repo.

🧩 Package Structure

src/
β”œβ”€β”€ Console/
β”‚   └── Commands/
β”‚       └── LogCommand.php
β”œβ”€β”€ LavackageServiceProvider.php
tests/
└── Feature/
    └── Commands/
        └── Log/
            └── LogBackupTest.php

πŸ§‘β€πŸ’» Contributing

We welcome PRs and feedback! Please follow Moztopia’s contributor guidelines:

  • Use branded headers and blank lines for clarity
  • Ensure all commands are reversible and container-safe
  • Log operator actions via Laravel-native methods

🌐 Links