Anvil
Anvil - The mobile companion for Laravel Forge. Available now. Download for iOS

Introduction

Latest Version on Packagist Styling Tests Total Downloads

This package generates patch files in the same fashion Laravel generates migrations. Each file is timestamped with an up and a down method and is associated with a batch. You may run or rollback patches with the commands below.

Features

  • Migration-style patches with up() and down() methods
  • Batch tracking for organized rollbacks
  • Comprehensive metadata tracking (execution time, memory, user, environment)
  • Event system for monitoring and custom workflows
  • Transaction support for atomic operations
  • Error handling with detailed logging and recovery options
  • Multiple commands for managing patches (status, list, dry-run)
  • Laravel 11 & 12 compatible

Requirements

  • PHP 8.2+
  • Laravel 11.x - 12.x