PHPackages                             ycs77/laravel-form-field-type - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. ycs77/laravel-form-field-type

ActiveLibrary

ycs77/laravel-form-field-type
=============================

Fast set the form fields of the Laravel form builder.

v1.3.2(4y ago)01511MITPHPPHP &gt;=7.1.3

Since Jan 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ycs77/laravel-form-field-type)[ Packagist](https://packagist.org/packages/ycs77/laravel-form-field-type)[ Docs](https://github.com/ycs77/laravel-form-field-type)[ RSS](/packages/ycs77-laravel-form-field-type/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (22)Used By (1)

Laravel form field type
=======================

[](#laravel-form-field-type)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4033b0eeb25da3268770c2ac5985a885770594e7902c18d481773d852383b2f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f79637337372f6c61726176656c2d666f726d2d6669656c642d747970652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ycs77/laravel-form-field-type)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/02a41f2d13e850fbef7ee6b833291ba166de792307352ebfe7926296f348f6c2/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f79637337372f6c61726176656c2d666f726d2d6669656c642d747970653f6c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://app.travis-ci.com/github/ycs77/laravel-form-field-type)[![Style CI Build Status](https://camo.githubusercontent.com/e7b11370789f5506e7d613884db99c527ea108df4fe76c313c0433a25ed0a32c/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3136363136373034372f736869656c643f7374796c653d666c61742d737175617265)](https://github.styleci.io/repos/166167047)[![Total Downloads](https://camo.githubusercontent.com/2dda82376275feb4e13a5256f5c9466c769b546612884682e45f3ffaa0b0d4e6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79637337372f6c61726176656c2d666f726d2d6669656c642d747970652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ycs77/laravel-form-field-type)

Fast set the form fields of the [Laravel form builder](https://github.com/kristijanhusak/laravel-form-builder).

Install
-------

[](#install)

[Laravel form builder](https://github.com/kristijanhusak/laravel-form-builder) must be installed.

Via Composer

```
composer require ycs77/laravel-form-field-type
```

Publish config

```
php artisan vendor:publish --tag=laravel-form-field-type-config
```

Suggestions can be matched with [Laravel form builder BS4](https://github.com/ycs77/laravel-form-builder-bs4).

Usage
-----

[](#usage)

First, create one form fields class:

```
php artisan make:formfields UserFormFields

```

The commonly used fields can be defined in `config/field.php` and the FieldType will be loaded automatically.

> In this case, the 'phone' fields have been defined in config/field.php, so they can be used directly.

*app/FormFields/UserFormFields*

```
