承接 allcaretravel/laravel-videoable 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

allcaretravel/laravel-videoable

Composer 安装命令:

composer require allcaretravel/laravel-videoable

包简介

This is a fork from nwidart/laravel-videoable and enhanced. Attach videos to your models

README 文档

README

Latest Version on Packagist Software License Build Status Scrutinizer Coverage Quality Score Total Downloads

Laravel laravel-videoable
<= 5.4 ^1.0
5.5 ^2.0
5.7 ^3.0
>= 7 ^4.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.

$product = Product::create(['product_name' => 'something']);

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

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

// Returns
<div>
    <div class="video">
        <iframe id="ytplayer" type="text/html" width="100%" height="100%"
                src="https://www.youtube.com/embed/123?rel=0"
                frameborder="0" allowfullscreen></iframe>
    </div>
</div>

Install

Via Composer

$ composer require nwidart/laravel-videoable

Next add the following service provider in config/app.php.

'providers' => [
  Nwidart\LaravelVideoable\LaravelVideoableServiceProvider::class,
],

Publish the package's migrations files by running :

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

php artisan migrate

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

php artisan vendor:publish --provider="Nwidart\LaravelVideoable\LaravelVideoableServiceProvider" --tag=config

(optional) Publish the package's view files by running :

php artisan vendor:publish --provider="Nwidart\LaravelVideoable\LaravelVideoableServiceProvider" --tag=views

Configuration

You can configure model and table from configuration file laravel-videoable

return [
   //...
    'table' => 'videos',
    'model' => \Nwidart\LaravelVideoable\Models\Video::class
  //...
];

Documentation

You'll find installation instructions and full documentation on https://nwidart.com/laravel-videoable/.

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

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

Credits

License

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

统计信息

  • 总下载量: 27
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-05-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固