2017 © Pedro Peláez
 

library laravel-videoable

Attach videos to your models

image

nwidart/laravel-videoable

Attach videos to your models

  • Monday, September 4, 2017
  • by nWidart
  • Repository
  • 2 Watchers
  • 7 Stars
  • 34 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

laravel-videoable

Latest Version on Packagist ![Software License][ico-license] Build Status Scrutinizer Coverage Quality Score ![Total Downloads][ico-downloads], (*1)

Laravel laravel-videoable
<= 5.4 ^1.0
5.5 ^2.0
5.7 ^3.0

Laravel Videoable is a quick and easy way to add a video to your Eloquent Models. It also features a way to generate the embed code directly., (*2)

``` php $product = Product::create(['product_name' => 'something']);, (*3)

$product->addVideo([ 'source' => 'youtube', 'code' => '123', 'title' => 'my video', 'width' => 50, 'height' => 150, ]);, (*4)

// Get the embeddable code $product->video->getEmbed();, (*5)

// Returns, (*6)


## Install Via Composer ``` bash $ composer require nwidart/laravel-videoable

Next add the following service provider in config/app.php., (*7)

``` php 'providers' => [ Nwidart\LaravelVideoable\LaravelVideoableServiceProvider::class, ],, (*8)


Publish the package's migrations files by running : ```bash php artisan vendor:publish --provider="Nwidart\LaravelVideoable\LaravelVideoableServiceProvider" --tag=migrations

After the migrations have been published you can create the laravel_videoables table by running the migrations, (*9)

php artisan migrate

(optional) Publish the package's configuration file by running :, (*10)

``` bash php artisan vendor:publish --provider="Nwidart\LaravelVideoable\LaravelVideoableServiceProvider" --tag=config, (*11)


(optional) Publish the package's view files by running : ``` bash php artisan vendor:publish --provider="Nwidart\LaravelVideoable\LaravelVideoableServiceProvider" --tag=views

Documentation

You'll find installation instructions and full documentation on https://nwidart.com/laravel-videoable/., (*12)

Change log

Please see CHANGELOG for more information on what has changed recently., (*13)

Testing

bash $ composer test, (*14)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*15)

Security

If you discover any security related issues, please email n.widart@gmail.com instead of using the issue tracker., (*16)

Credits

License

The MIT License (MIT). Please see License File for more information., (*17)

The Versions

04/09 2017

dev-master

9999999-dev https://github.com/nwidart/laravel-videoable

Attach videos to your models

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel video youtube vimeo laravel-videoable

04/09 2017

2.0.0

2.0.0.0 https://github.com/nwidart/laravel-videoable

Attach videos to your models

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel video youtube vimeo laravel-videoable

04/09 2017

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/nwidart/laravel-videoable

Attach videos to your models

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel video youtube vimeo laravel-videoable