Download the PHP package iamgerwin/filament-flexible-content without Composer
On this page you can find all versions of the php package iamgerwin/filament-flexible-content. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download iamgerwin/filament-flexible-content
More information about iamgerwin/filament-flexible-content
Files in iamgerwin/filament-flexible-content
Package filament-flexible-content
Short Description Flexible Content & Repeater Fields for Laravel Filament v4
License MIT
Homepage https://github.com/iamgerwin/filament-flexible-content
Informations about the package filament-flexible-content
Filament Flexible Content
Flexible Content & Repeater Fields for Laravel Filament v4. Built with PHP 8.2+ features for maximum performance and type safety.
Features
- ๐จ Flexible Layout System - Create custom content layouts with ease
- ๐ง Built for Filament v3 & v4 - Seamlessly integrates with Filament's form builder
- ๐ PHP 8.2+ Optimized - Leverages modern PHP features for performance
- ๐ฆ Preset Support - Bundle layouts into reusable presets
- ๐ฏ Type-Safe - Full type declarations and strict typing throughout
- ๐งฉ Extensible - Easy to extend with custom layouts and functionality
- ๐พ Cast Support - Eloquent cast for seamless database integration
- ๐ ๏ธ Artisan Commands - Quickly scaffold new layouts
- ๐งช Fully Tested - Comprehensive test suite using Pest
Requirements
- PHP ^8.2
- Laravel ^10.0, ^11.0, or ^12.0
- Filament ^3.2 or ^4.0
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
Usage
Basic Usage
Add the flexible content field to your Filament resource:
Creating Layouts
Create a new layout using the artisan command:
Or create a layout manually:
Using Presets
Create a preset to bundle multiple layouts:
Use the preset in your form:
Advanced Configuration
Conditional Visibility with dependsOn
The FlexibleContent field supports conditional visibility based on other form fields:
You can also apply conditional visibility to individual layouts:
Database Integration
Add the cast to your model:
Accessing Content in Views
Working with Content Items
Testing
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
- iamgerwin
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-flexible-content with dependencies
filament/filament Version ^3.2 || ^4.0
illuminate/contracts Version ^10.0|^11.0|^12.0
spatie/laravel-package-tools Version ^1.16