davidpiesse/nova-audio

Audio Field for Laravel Nova
194,743 22
Install
composer require davidpiesse/nova-audio
Latest Version:0.0.3
PHP:>=7.1.0
License:MIT
Last Updated:Dec 8, 2022
Links: GitHub  ·  Packagist
Maintainer: davidpiesse

Audio Field

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 davidpiesse/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')
        ->expires(5),
        ...
    ];
}

Related Packages

folklore/eloquent-mediatheque

Laravel 4 and 5 package to add media relations to Eloquent Models

4,048 2
unm/laravel4-opencloud

A laravel 4.1 service provider package that wraps the Rackspace/Openstack PHP SD...

4 7
acekyd/laravelmp3

A light weight Laravel package for simple operations with mp3 files

3,709 22
folour/flavy

FFmpeg layer for Laravel 5.2-5.4, this is a fork of rafasamp/sonus package

9,558 27
a4m/zencoder

A laravel wrapper around the zencoder API.

353