carma / migration-checker
This package will add into the moonshine admin panel a new menu item 'Migration checker' for checking all migrations
1.0.0
2024-07-12 14:54 UTC
Requires
- php: ^8.3
- laravel/framework: ^11.0
- laravel/pint: ^1.16
- moonshine/moonshine: ^2.10
- spatie/laravel-permission: *
- symfony/finder: ^7.0
This package is not auto-updated.
Last update: 2025-03-08 16:13:35 UTC
README
This package will add a new menu item "Migration checker" to the Moonshine admin panel.
Installation
You can install the package via composer:
composer require carma/migration-checker
Usage
After installing and configuring the package, you will see a new menu item 'Migration Checker' in your Moonshine admin panel. This will allow you to:
- View all migrations in your system
- Check the status of each migration (Ran/Pending)
- Update and delete migrations as needed
MigrationService
The main service provided by this package is the MigrationService
which includes methods to fetch and update migrations.
Methods:
updateAllMigrations()
: This method updates the list of all migrations in the system.getAllMigrationsFromSystem()
: This protected method retrieves all migration files from the system.