PHP code example of awcodes / filament-oembed

1. Go to this page and download the library: Download awcodes/filament-oembed library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

awcodes / filament-oembed example snippets


use Awcodes\FilamentOembed\Forms\Components\OEmbed;

OEmbed::make(string $fieldname)
bash
php artisan vendor:publish --tag=filament-oembed-assets
php artisan vendor:publish --tag=filament-oembed-translations
php artisan vendor:publish --tag=filament-oembed-views
js
content: [
    ...
    "./vendor/awcodes/filament-oembed/resources/views/**/*.blade.php",
],