- What does zedisdog/laravel-schema-extend do?
- It is a migration-time supplement for Laravel's schema builder, adding extra column types and helpers so migrations can define structures Laravel does not support out of the box. It is not runtime business logic, so use it only where native migrations lack a needed column, index, or type. Exact methods should be confirmed from the package source or README because the provided overview does not list them.
- How do I install zedisdog/laravel-schema-extend with Composer?
- Install it with composer require zedisdog/laravel-schema-extend and pin the version in your lockfile. Then register any service provider or schema macros exactly as the package documents. The provided overview does not confirm Laravel auto-discovery, so verify composer.json and the README before assuming zero setup.
- Which Laravel and PHP versions are supported by laravel-schema-extend?
- The provided overview does not include a support matrix for Laravel, PHP, or database engines. Check the package composer.json constraints, README, and any CI configuration against your target Laravel major, PHP runtime, and database. If compatibility is unproven, run a non-production proof of concept before adopting it.
- How do I register the schema macros or service provider?
- Registration is likely via a service provider or schema macro registration, but the exact mechanism is not specified in the provided overview. Follow the package README or source and register it only in environments where migrations run. A missing provider or macro typically appears as a method-not-found error during migration.
- What extra column types or schema helpers does laravel-schema-extend add?
- The package is described as adding extra column types and helpers to Laravel's schema builder, but the provided context does not enumerate them. Inventory the actual methods from the source or README before planning migrations. Confirm each method produces correct SQL for your database engine and supports both up and down migrations.
- Does laravel-schema-extend support migrate:fresh and rollback?
- It should be treated as migration DSL support, so your custom column types must generate valid SQL for both applying and reversing migrations. Test migrate:fresh, rollback, and schema diff on a disposable database before relying on it. The provided overview does not confirm rollback or fresh parity, so verify it yourself.
- Is zedisdog/laravel-schema-extend safe to use in production?
- It can be acceptable for a narrow migration use case if you pin the Composer version, review the source, and keep a raw SQL fallback. The package has weak maintenance signals, an unknown repository, and a non-standard WTFPL license that needs legal review. Avoid making it a platform-wide dependency and test deploy, rollback, and fresh migrations in staging.
- Can I replace laravel-schema-extend with native Laravel migrations or raw SQL?
- Often yes: native Laravel schema methods or raw SQL inside migrations can cover a one-off unsupported column or index. Prefer native migrations when they work, and use raw SQL with explicit up and down logic when they do not. This reduces dependency and supply-chain risk, though you lose the package's migration helper syntax.
- What are alternatives to laravel-schema-extend?
- Alternatives include Laravel's native schema builder, raw SQL in migrations, custom schema macros you maintain yourself, or a maintained fork of this package. Choose based on the exact schema feature you need and your supported Laravel, PHP, and database versions. If the capability is critical, vendor or fork the package rather than depending on an unknown upstream.
- Is laravel-schema-extend maintained and what license does it use?
- The provided assessment notes 61 stars, an unknown repository, and WTFPL licensing, which are weak maintenance signals despite the permissive license. There is no commercial support or warranty under WTFPL, so assign an internal owner and monitor Laravel upgrades. Pin the lockfile and define a removal or fork contingency if the schema feature becomes critical.