samirsabiee/laravel-hotfix

This is my package laravel-hotfix

dev-main 2023-07-03 17:02 UTC

README

Latest Version on Packagist Tests Total Downloads

Hotfix laravel package with DB Transaction control first publish config and migration file and start using

Installation

You can install the package via composer:

composer require samirsabiee/laravel-hotfix

Usage

  • Commands
    • php artisan hotfix:make <<NAME>>

      Above command create stub hotfix file app/Hotfixes/config.path

    • php artisan hotfix <<NUMBER>>

      Above command execute NUMBER last not executed hotfixes created in path config under app/Hotfixes directory

    • php artisan hotfix all

      Above command execute all not executed hotfixes created in path config under app/Hotfixes directory

    • php artisan hotfix:run <<NAME>>

      Above command run single hotfix By entering hotfix name (you can enter part of name and select one of founded hotfixes)

    • php artisan hotfix:ls 

      Above command list 10 last hotfixes with error and status column

    • php artisan hotfix:ls <<NUMBER>>

      Above command list NUMBER last hotfixes with error and status column

    • php artisan hotfix:ls <<NUMBER>> --error

      Above command list NUMBER last hotfixes executed with error

    • php artisan hotfix:logs <<ID>>

      Above command show long log of hotfix by id shown in ls command

    • php artisan hotfix:retry <<ID>>

      Above command retry hotfix that executed with error by ID shown in ls command

    • php artisan hotfix:retry all

      Above command retry all hotfixes executed with error

    • php artisan hotfix:status <<NAME>>

      Above command show status single hotfix By entering hotfix name (you can enter part of name and select one of founded hotfixes)

Credits

License

The MIT License (MIT). Please see License File for more information.