shureban/laravel-easy-request
Laravel package that adds typed getters to FormRequest via PHPDoc @method annotations. Call $request->name(), $request->age(), etc., and values are cast to bool/int/float/Carbon/DateTime. Supports camelCase methods with snake_case input keys.
FormRequest and service container, requiring minimal architectural changes.FormRequest classes, promoting single-responsibility principles.user() resolving to a User instance).~5 minutes).^10.0).^8.1 (check alignment with your stack).^7.0), which is already a common Laravel dependency.EasyRequest with a mock in unit tests).FormRequest validation and type casting.EasyRequestException).FormRequest).FormRequest classes are modular enough to avoid duplication.FormRequest class (e.g., for a payment gateway or third-party API).GET requests, then expand to POST/PUT).FormRequest classes to use the package’s fluent methods.FormRequest instances if needed).FormRequest (e.g., API resource validation).FormRequest classes that don’t use the package’s methods.composer.json and install the package.FormRequest class with typed methods (e.g., ApiRequest).StripeRequest, AuthRequest).FormRequest validation and type casting.FormRequest instances or responses if needed (e.g., for read-heavy APIs).FormRequest will throw BadMethodCallException.string instead of int) may cause issues downstream.@throws in DocBlocks to document potential exceptions.FormRequest::rules() to catch issues early.user_id → User model).How can I help you explore Laravel packages today?