appventus/auto-form-fill-bundle
FormBuilder and EventDispatcher, with no Laravel equivalents (e.g., FormRequest, Validator).AppKernel is replaced by Laravel’s ServiceProvider/Package system. No direct porting path exists.Form component with Laravel’s Request/Validator.FormRequest events).fake() helpers replace this functionality?spatie/laravel-test-factories) for similar needs?config('app.debug')? Could it accidentally enable in production?FormBuilder. Key mismatches:
FormType classes; Laravel uses Request validation + FormRequest.FormEvents (e.g., PRE_SUBMIT) have no Laravel equivalent.ContainerInterface vs. Laravel’s Illuminate\Container.Faker facade (via fakerphp/faker) could be leveraged for data generation, but the bundle’s form-filling logic would need a rewrite.browse()->fill()).fill() methods).ServiceProvider that hooks into FormRequest events.FormType with Laravel’s FormRequest validation rules.fake() helpers (PestPHP) or a custom FormFiller trait to populate fields.// Custom Laravel ServiceProvider
public function boot()
{
if (app()->environment('local')) {
FormRequest::macro('autoFill', function () {
$this->merge([
'email' => fake()->unique()->safeEmail(),
'password' => 'password123',
]);
});
}
}
EventDispatcher with Laravel’s Events system.local/testing environments via app()->environment().--env=testing flags to disable it.FormRequest macro for auto-filling (as above).// config/auto_form_fill.php
'forms' => [
'App\Http\Requests\RegisterRequest' => [
'email', 'password', 'accepts_terms'
],
],
FormType would need training on the custom Laravel implementation.FormRequest macros.How can I help you explore Laravel packages today?