ericlagarda/nova-embed
最新稳定版本:v2.1
Composer 安装命令:
composer require ericlagarda/nova-embed
包简介
Embed field for Laravel Nova
README 文档
README
Embed field for Laravel Nova. With this package you can embed from Youtube, Vimeo, Facebook, DailyMotion, SoundCloud, Instagram and a lot of more. Uses Oscarotero Embed to get the data.
Installation
You can install the package in to a Laravel app that uses Nova via composer:
composer require ericlagarda/nova-embed
Then, register your new field in the fields method of the Resource class.
use EricLagarda\NovaEmbed\Embed; public function fields() { return [ // ... Embed::make('Embed') ->ajax(), ]; }
Update
Please change your namespace: Ericlagarda to EricLagarda
Field options
->ajax(): Load the embed with ajax. By default loads with the field->cache(): You can set the time of the cache. By default a month.->viewInIndex(): Click on the image to open a modal with the embed.
Cache will set a month in minutes for Laravel 5.7 and below, and a month in seconds for Laravel 5.8 and up.
## Screenshots
统计信息
- 总下载量: 19.3k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-03-04


