json column type or a dedicated model attribute).casts or custom accessors).Illuminate\Support\Facades\Cache) should be implemented.filament/filament:^5.0).@source '../../../../vendor/awcodes/matinee/resources/**/*.blade.php';
php artisan filament:assets).composer require awcodes/matinee
php artisan vendor:publish --tag="matinee-assets" # If publishing assets
embed_data) to the target model:
use Illuminate\Database\Eloquent\Casts\AsCollection;
protected $casts = [
'embed_data' => AsCollection::class,
];
use Awcodes\Matinee\Fields\OEmbedField;
OEmbedField::make('video_embed')
->label('Video')
->columnSpanFull(),
Post) to validate functionality.filament:debug command and browser dev tools for Blade/JS issues.$embed = Cache::remember("embed_{$url}", now()->addHours(1), fn() => OEmbed::fetch($url));
| Failure Scenario | Impact | Mitigation |
|---|---|---|
| OEmbed API downtime | Embeds fail to load | Cache responses; provide fallback UI (e.g., placeholder). |
| Invalid/malicious URLs | XSS or broken embeds | Sanitize URLs; use Filament’s built-in validation. |
| Filament/Matinee version conflict | Plugin breaks | Test upgrades in staging; use composer why-not to diagnose. |
| Custom theme CSS conflicts | Styling issues | Inspect published assets; override styles via theme. |
| JSON schema corruption | Data loss or rendering errors | Use Laravel’s casts for validation; add database backups. |
OEmbedField in a resource.How can I help you explore Laravel packages today?