davidpiesse / nova-audio
Audio Field for Laravel Nova
Installs: 165 891
Dependents: 3
Suggesters: 0
Security: 0
Stars: 22
Watchers: 2
Forks: 18
Open Issues: 26
Language:Vue
Requires
- php: >=7.1.0
- dev-master
- 0.0.3
- 0.0.2
- 0.0.1
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/loader-utils-1.4.2
- dev-dependabot/npm_and_yarn/css-what-2.1.3
- dev-dependabot/npm_and_yarn/minimist-1.2.6
- dev-dependabot/npm_and_yarn/url-parse-1.5.10
- dev-dependabot/npm_and_yarn/follow-redirects-1.14.8
- dev-dependabot/npm_and_yarn/chownr-1.1.4
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/tar-2.2.2
- dev-dependabot/npm_and_yarn/dns-packet-1.3.4
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/ini-1.3.7
- dev-dependabot/npm_and_yarn/http-proxy-1.18.1
- dev-dependabot/npm_and_yarn/node-sass-4.14.1
- dev-dependabot/npm_and_yarn/lodash.mergewith-4.6.2
- dev-dependabot/npm_and_yarn/websocket-extensions-0.1.4
This package is auto-updated.
Last update: 2024-11-09 03:23:58 UTC
README
An audio field for use in Laravel Nova.
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), ... ]; }