laragear/meta
Helper utilities for Laravel package developers. Simplifies service provider bootstrapping with publishable migrations, scheduled tasks, middleware declarations (groups, aliases, priority), plus optional meta-testing helpers and class discovery tools.
withGate(), withPolicy()) for auth-related packages.Adopt When:
Look Elsewhere If:
laragear/meta-testing separately)."This package cuts 30–50% of boilerplate code in Laravel packages—saving dev time and reducing bugs. By standardizing migrations, middleware, and scheduling, we ensure our internal tools (e.g., [Package X]) ship faster and align with Laravel’s latest standards. It’s a low-risk, high-reward investment for scaling our package ecosystem, with MIT licensing and Octane compatibility for future-proofing."
Key Metrics to Track:
*"laragear/meta gives you fluent, expressive helpers to handle the tedious parts of Laravel packages—no more rewriting the same boot() logic. Key benefits:
withPublishableMigrations()).MiddlewareDeclaration).meta-testing).Example:
// Before (boilerplate):
$this->loadMigrationsFrom(__DIR__.'/../migrations');
$this->app->make('schedule')->command('report:generate')->daily();
// After (concise):
$this->withPublishableMigrations(__DIR__.'/../migrations');
$this->withSchedule(fn($schedule) => $schedule->command('report:generate')->daily());
Why now?
Next Steps:
withMiddleware() for global middleware’).Call to Action:
How can I help you explore Laravel packages today?