bernskioldmedia/laravel-form-architect

A fluent helper to build powerful forms in PHP designed to be outputted in blade.

dev-main 2024-04-06 07:33 UTC

This package is auto-updated.

Last update: 2024-11-06 08:39:23 UTC


README

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Prerequisites

  • Laravel 10 or higher
  • PHP 8.2 or higher

Installation

You can install the package via composer:

composer require bernskioldmedia/laravel-form-architect

Publishing config and views

You can publish the config file with:

php artisan vendor:publish --tag="laravel-form-architect-config"

This is the contents of the published config file:

<?php

return [
    'components' => [
        'form' => 'form.index',
        'fieldset' => 'form.fieldset',
        'field' => 'form.field',
        'input' => 'form.input',
        'checkbox' => 'form.checkbox',
        'radio' => 'form.radio',
        'select' => 'form.select',
        'textarea' => 'form.textarea',
        'multiselect' => 'form.multiselect',
    ],
];

Optionally, you can publish the views using

php artisan vendor:publish --tag="laravel-form-architect-views"

Usage

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

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