Skip to content

Latest commit

 

History

History
64 lines (38 loc) · 1.39 KB

README.md

File metadata and controls

64 lines (38 loc) · 1.39 KB

Image or video field for Filament

Package to embed an image or youtube/vimeo as a Filament field

Installation

You can install the package via composer:

composer require wotz/filament-image-or-video

Optionally, you can publish the views using

php artisan vendor:publish --tag="filament-image-or-video-views"

Optionally, you can publish the translations using

php artisan vendor:publish --tag="filament-image-or-video-translations"

Usage

use App\Formats\Landscape;
use Wotz\FilamentImageOrVideo\Filament\Components\ImageOrVideoUrl;

ImageOrVideoUrl::make(attachmentFormats: [Landscape::class]);

attachmentFormats also accepts a closure (fn (Get $get) => [...]), see the documentation.

Documentation

For the full documentation, check here.

Testing

vendor/bin/pest

Changelog

Please see CHANGELOG for more information on what has changed recently.

Upgrading

Please see UPGRADING for more information on how to upgrade to a new version.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

If you discover any security-related issues, please email info@whoownsthezebra.be instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.