vaix-dungpx / laravel-form-components
Blade components to rapidly build forms with Bootstrap.
1.0
2023-04-13 06:44 UTC
Requires
- php: ^8.1
- ext-json: *
- laravel/framework: ^10.0
Requires (Dev)
- mockery/mockery: ^1.5
- phpunit/phpunit: ^9.5.25
This package is not auto-updated.
Last update: 2025-04-11 14:32:01 UTC
README
Use Blade components to build forms with Bootstrap.
Requirements
- PHP 8.1+ or higher
- Laravel 8.0 or 9.0
Installation
You can install the package via composer:
composer vaix-dungpx/laravel-form-components
Publish the configuration file and Blade views with the following command:
php artisan vendor:publish --provider="TysonLaravel\FormComponents\FormComponentServiceProvider"
Quick example
<x-form::open :action="route(STORE_PRODUCT)"> <!-- Input only ---> <x-form::input name="name" :value="old('name')" required/> <!-- With group & label ---> <x-form::group :label="trans('product.code')"> <x-form::input name="code" :value="old('code')"/> </x-form::group> </x-form::open>