Api.video upload field for Laravel Nova. It allows uploading videos (supports large files) to api.video.
You can install the package via composer:
composer require steadfastcollective/nova-api-video
use SteadfastCollective\NovaApiVideo;
NovaApiVideo::make('Api Video Id', 'api_video_id')
->rules('required')
->acceptedTypes('video/*');
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');
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email dev@steadfastcollective.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.