kayacekovic/nova-audio 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kayacekovic/nova-audio

最新稳定版本:1

Composer 安装命令:

composer require kayacekovic/nova-audio

包简介

Audio Field for Laravel Nova

README 文档

README

An audio field for use in Laravel Nova.

Audio Field

For use when you are storing an audio file and want to listen to it from within Nova. It is built on the core File Field field type. See here for more info

Under the hood it uses thabsic HTML5 Audio tag. So MP3, WAV and OGG are supported :)

Installation

composer require kayacekovic/nova-audio

To use the field add it to your Nova Resources file (such as User.php)

use Davidpiesse\Audio\Audio;

public function fields(Request $request)
{
    return [
        ...
        Audio::make('Audio')->disk('public'),
        
        Audio::make('Audio', function() {
            return 'path-to-your-folder-on-s3'.$this->audio_file_name_from_model;
        })->disk('s3')
        ->playOnForms() // can you show audio field on update or create form
        ->expires(5),
        ...
    ];
}

统计信息

  • 总下载量: 2.79k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 18
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-03-29