ilbronza / formfield
:form_field
Installs: 280
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/ilbronza/formfield
Requires (Dev)
- mockery/mockery: ^1.1
- orchestra/testbench: ~3|~4
- phpunit/phpunit: ^8.0
- sempro/phpunit-pretty-print: ^1.0
This package is auto-updated.
Last update: 2025-10-03 13:37:17 UTC
README
This is where your description should go. Take a look at contributing.md to see a to do list.
Installation
Via Composer
$ composer require ilbronza/formfield
Usage
Select or multiple fields
Set the possible values for a relation
Given a relation (ex. Categories) you can set the possible values for a select or multiple field with the following code to populate the select or multiple field options
public function getPossibleClientsValuesArray() : array { return Category::select('name', 'id')->take(10)->pluck('name', 'id')->toArray(); }