andreasnij / form-components-for-laravel
Blade form components for Laravel.
0.3
2024-04-04 09:42 UTC
Requires
- php: >=8.2
- illuminate/contracts: ^11.0
- illuminate/support: ^11.0
- illuminate/view: ^11.0
Requires (Dev)
- orchestra/testbench: ^9.0
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^11.0
- squizlabs/php_codesniffer: ^3.9
README
Blade form components for Laravel.
This package is currently in a pre-release stage so use at your own risk. Things might change.
Installation
Add the package as a requirement to your composer.json
:
$ composer require andreasnij/form-components-for-laravel
Usage
<x-form method="PATCH" action="{{ route('products.update', $product) }}" :model="$product"> <x-input label="Name" name="name" /> <button type="submit">Save</button> </x-form>
Author
Andreas Nilsson (https://github.com/andreasnij)
License
This software is licensed under the MIT License - see the LICENSE file for details.