Errold JayErrold Jay
Back to portfolio

Open source

Packages and tools I've published and open-sourced for the community to use, study, and build on.

v1.0.0PHPMIT

laravel-migrate-fresh-table

Sometimes you need to rebuild a single table from scratch โ€” reset a corrupted pivot, reapply a changed schema during development, or re-provision one table per tenant โ€” without nuking everything else. This Laravel package does exactly that, safely. Like migrate:fresh, but scoped, foreign-key aware, multi-connection and multitenant-friendly.

  • ๐ŸŽฏ Scoped โ€” drop & recreate one table or an ordered list, not the whole DB.
  • ๐Ÿ”— Foreign-key aware โ€” inspects the live schema, reports every parent and child relationship with the rows that would be orphaned, and asks first.
  • ๐ŸŒŠ Cascade or data-only โ€” --with-related refreshes a table plus its whole dependent tree; --data-only empties the rows and keeps the schema.
  • ๐Ÿงฉ Pluggable โ€” re-run a table's migration, rebuild from an explicit Blueprint, or register your own strategy.
  • ๐Ÿข Multi-connection / multitenant โ€” target one connection, iterate a list, or resolve tenant connections dynamically. PostgreSQL search_path aware.
  • ๐Ÿงช Safe by default โ€” confirms before running in protected environments (configurable), plus --dry-run, --pretend, and a transaction so a failed run rolls back instead of half-dropping.
  • ๐Ÿช Hookable โ€” lifecycle events and global before/after callbacks.
composer require kerroldj/laravel-migrate-fresh-table
LaravelPHPDatabaseMigrationsMultitenant
v0.2.0TypeScriptMIT

vue-feature-scaffold

A powerful CLI tool that scaffolds a clean, feature-based Vue.js architecture in seconds โ€” so you spend less time wiring up folders and boilerplate, and more time building. Each feature is generated as a self-contained, modular slice with full TypeScript support and comprehensive comment templates that document every file as it's created. Built framework-agnostic: it's optimized for Laravel + Inertia.js but works just as well with Nuxt, Vite, Vue CLI, or any Vue.js stack. Generated code is fully customizable to fit your conventions, and directory validation keeps generation safe so you never accidentally overwrite existing work.

npm i vue-feature-scaffold
CLIVue.jsTypeScriptScaffoldingLaravel