huement/statamic-ytlistr
Statamic addon for pulling YouTube videos and playlists into your site. Configure channel or playlist sources, cache API responses, and render video lists with Antlers or Blade tags, making it easy to keep embedded YouTube content fresh without manual updates.
composer require <vendor>/<package>
php artisan vendor:publish --provider="<Vendor>\<Package>\<PackageServiceProvider>"
config/services.php or the package config, then clear config cache:
php artisan config:clear
php artisan migrate
@php($youtubeUrl = data_get($video, 'youtube_url'))
@if($youtubeUrl)
<iframe src="{{ $youtubeUrl }}" allowfullscreen></iframe>
@endif
app/Console/Kernel.php or routes/console.php depending on your Laravel version. For hourly syncs:
$schedule->job(new SyncVideosWithYouTube)->hourly()->withoutOverlapping();
For daily syncs:
$schedule->job(new SyncVideosWithYouTube)->dailyAt('02:00')->withoutOverlapping();
Ensure php artisan schedule:run is configured in cron and that queue workers are running if the sync job is queued.data_get($video, 'youtube_url') over direct property access when the object may be an array, Eloquent model, or DTO. This is especially useful when switching between database and YAML storage.php artisan schedule:list and check cron on production.withoutOverlapping() and appropriate tries/backoff values.data_get() null safety: data_get($video, 'youtube_url') returns null if missing, so always guard before rendering an iframe or link. Do not assume every video has a YouTube URL.php artisan config:clear locally and redeploy with php artisan config:cache in production.How can I help you explore Laravel packages today?