saimondev03/form

Advanced form generation for Laravel

Downloads

46

Stars

0

Version

0.1.0

Saimondev03 Form

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 [email protected].

Credits

License

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

Saimon-git

Author

Saimon-git