steadfastcollective / nova-api-video
Api.video upload field for Laravel Nova.
Installs: 99
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Language:Vue
Requires
- php: >=7.1.0
- steadfastcollective/laravel-api-video: *
README
Introduction
Api.video upload field for Laravel Nova. It allows uploading videos (supports large files) to api.video.
Installation
You can install the package via composer:
composer require steadfastcollective/nova-api-video
Usage
use SteadfastCollective\NovaApiVideo; NovaApiVideo::make('Api Video Id', 'api_video_id') ->rules('required') ->acceptedTypes('video/*');
Store additional attributes
You can call withAdditionalAttributes()
to save additional attributes to the database. These include 'file_name', 'file_type', 'size' and 'video_duration'.
use SteadfastCollective\NovaApiVideo; NovaApiVideo::make('Api Video Id', 'api_video_id') ->rules('required') ->acceptedTypes('video/*') ->withAdditionalAttributes();
You can also specify which additional attributes you want to save by passing the field names as a parameter.
use SteadfastCollective\NovaApiVideo; NovaApiVideo::make('Api Video Id', 'api_video_id') ->rules('required') ->acceptedTypes('video/*') ->withAdditionalAttributes('file_name', 'file_type');
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email dev@steadfastcollective.com instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.