suleymanozev / filament-radio-button-field
The radio button field for the Filament forms
Installs: 37 817
Dependents: 2
Suggesters: 0
Security: 0
Stars: 35
Watchers: 1
Forks: 7
Open Issues: 7
Language:Blade
Requires
- php: ^8.0
- filament/forms: ^2.0|^3.0
- illuminate/contracts: ^8.6|^9.0|^10.0
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-12-22 04:27:28 UTC
README
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Installation
You can install the package via composer:
composer require suleymanozev/filament-radio-button-field
Add the package blade files the content section of the tailwind.config.js file.
module.exports = { content: [ "./resources/**/*.blade.php", "./vendor/suleymanozev/**/*.blade.php", // Add this line ], theme: { extend: {}, }, plugins: [], }
Optionally, you can publish the views using
php artisan vendor:publish --tag="filament-radio-button-field-views"
Usage
RadioButton::make('amount') ->label('Example Label') ->options(['1' => 'Example Option Label', '2' => 'Example Option Label 2']) ->descriptions(['1' => 'Example Description', '2' => 'Example Description 2']) ->columns(3),
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.