unusualify/laravel-form

Form input components for laravel blade

v0.2.1 2024-05-30 20:23 UTC

README

php artisan vendor:publish --provider="OoBook\LaravelForm\LaravelServiceProvider" --tag="migrations"

    @inputField('text', [
        'input_name' => 'name',
        'label' => 'Report Name',
        'model' => $item,
        'placeholder' => __('Name'),
        'class' => '',
        'props' => "
            required
            autofocus
            minlength=5
        ",
    ])
    @unusualForm([
        'inputs' => [
            [
                'type' => 'text',
                'input_name' => 'name',
                'label' => 'Social Media Name',
                'model' => $item,
                'placeholder' => __('Name'),
                'class' => '',
                'props' => 'required autofocus',
            ],
            [
                'type' => 'filepond',
                'input_name' => 'logo',
                'label' => 'Social Media Logo',
                'model' => $item,
                'placeholder' => __('Logo'),
                'class' => '',
                'props' => 'required autofocus',
            ]
        ]
    ])