You can install the package via composer:
composer require awcodes/filament-oembed
Optionally, you can publish the views, assets or translations using:
php artisan vendor:publish --tag=filament-oembed-assets
php artisan vendor:publish --tag=filament-oembed-translations
php artisan vendor:publish --tag=filament-oembed-views
If you are using a custom theme for Filament you will need to add this plugin's views to your Tailwind CSS config. Once this is done you may disable the plugin's stylesheet in the config file by changing 'load_styles' to false.
content: [
...
"./vendor/awcodes/filament-oembed/resources/views/**/*.blade.php",
],
Allows an oEmbed video with preview. Only supports YouTube and Vimeo at the moment.
use Awcodes\FilamentOembed\Forms\Components\OEmbed;
OEmbed::make(string $fieldname)
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.