Download the PHP package smirltech/laravel-form without Composer
On this page you can find all versions of the php package smirltech/laravel-form. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download smirltech/laravel-form
More information about smirltech/laravel-form
Files in smirltech/laravel-form
Package laravel-form
Short Description A bunch of form input components
License MIT
Homepage https://github.com/smirltech/laravel-form
Informations about the package laravel-form

Laravel Form components
This is a package that provides a bunch of form components ready to use in your Laravel application and provides the best hanlding for frome validation errors.
Originally created for Livewire projects, but can be used in any Laravel project.
- The components are built using Bootstrap 5.
- Each component has a label, a name, and a value. You can pass the value as a model attribute or a value attribute.
- Required fields are automatically detected and displayed with a red asterisk.
- Errors are displayed automatically below the input if there is any.
- The
selectuses the Selectize.js library to display a nice select input with search and multiple selection. - The
ckeditoruses the CKEditor 5 library to display a nice WYSIWYG editor.
Installation
Install the package via composer:
Add <x-form::scripts/> component to your layout:
Usage
Here are some examples of how to use the components.
Input
Use the x-form::input component to display a text input.
typeattribute to set the input type.placeholderattribute to display a placeholder.requiredattribute to set the input as required.wire:modelattribute to bind the input to a model attribute.nameattribute to set the input name.labelattribute to set the input label.
Select
use the x-form::select component to display a select input with options. you can pass the options as an array or a
collection, or enums.
multipleattribute to allow multiple selection.placeholderattribute to display a placeholder.'
Ckeditor
Use the x-form::ckeditor component to display a WYSIWYG editor.
heightattribute to set the editor height.valueattribute to set the editor value.
Input Excel
Contributing
The package is still in development, so feel free to contribute.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-form with dependencies
laravel/framework Version ^11.0|^10.0|^9.0
livewire/livewire Version ^v2.10
spatie/laravel-package-tools Version ^1.14.1