montri/youtube-video-field

A Field allowing you to add Youtube Videos to your Nova Resources!

This package's canonical repository appears to be gone and the package has been frozen as a result.

v1.0.01 2023-05-20 22:04 UTC

This package is auto-updated.

Last update: 2024-07-21 00:39:33 UTC


README

This is a short little package, allowing you to include Youtube videos in your Nova Resources within Nova 4!

Installation

# Install the Package
composer require montri/nova-youtube-field

Usage

use Montri\VideoYoutube\VideoYoutube;

...

VideoYoutube::make('Youtube Video', 'url') // Video with Name and attribute

VideoYoutube::make('Youtube Video', 'url')->onlyAllowValidLinks(bool) // Only Allow real Youtube Links on Form

VideoYoutube::make('Youtube Video', 'url')->clickable(bool)->openInSameTab(bool)
// Make Video in Index View clickable and if yes, open in new or same tab.

VideoYoutube::make('Youtube Video', 'url')->withWidth(int)->withHeight(int)
// Sets Width and Height of Video in Detail View.

// All Methods are optional.

Screenshots

Down here you can see some screenshots on how the bot sends messages.

Detail View

Index View

Form View

License

MIT