Advanced form generation for Laravel

0.1.0 2021-04-28 23:30 UTC

This package is auto-updated.

Last update: 2022-04-29 01:20:57 UTC


README

Build Status Latest Version on Packagist Total Downloads Version GitHub license

Advanced form generation for Laravel.

Requeriments

The current package requeriments are:

  • Laravel >= 7.3
  • PHP >= 7.3

Installation

You can install the package via composer:

composer require saimondev03/form

Usage

You can use <x-field /> to create your new form field

You can customize the form field by passing attributes such as name, id, class, type, etc.

You can customize the form methods by passing the method in the form component with respective name example get, post, put, patch, delete.

Component rendering

To render the component, you can use a Blade component tag inside one of your Blade templates. Blade component tags begin with the string x- followed by the component name:

<x-form method="method">
    <x-field />
</x-form>

<x-form>
    <x-field name="name" type="text" class="clasname" required />
</x-form>

Component Field rendering without label

<x-form method="method">
    <x-field label="false" name="name" type="text" class="clasname" required />
</x-form>

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

If you find any security issues, please email us at simonmontoya19@gmail.com.

Credits

License

The MIT License (MIT). Please see License File for more information.