laravel-ready/license-server — reverse-engineered prompt
Reverse engineered prompt
Build me a ready to use Laravel package that acts as a license server for my apps or services. I want to be able to attach licenses to any product model, create licenses for either a domain or a user, and have support for normal, trial, expiring, and lifetime licenses. License keys should be UUIDs, and I should be able to look up a license by key, by user, or by domain, then check whether it is active, inactive, suspended, expired, invalid, or missing.
Please make it feel like something I can drop into an existing Laravel app with migrations, config, routes, and sensible defaults. I also want service methods for creating licenses and changing status, plus a validation endpoint that a separate client app can call. If possible, leave room for a custom validation controller and an event hook when a license gets checked so I can add my own logic later.
Keep it clean and practical, and look up current docs online if you need to.
Want more depth? Deep Reverse