deka/media
最新稳定版本:1.0
Composer 安装命令:
composer require deka/media
包简介
Toolset for handling media (images and documents) in Laravel.
README 文档
README
This package makes adding media to your models a breeze. Just define the different types of media you whish to use and where to put them, add the Trait to the specified Models and you're ready to go!
Installation
You can install the package via composer:
composer require deka/media
You must publish the assets with:
php artisan vendor:publish --provider="Deka\Media\MediaServiceProvider" --tag="assets"
You can publish and run the migrations with:
php artisan vendor:publish --provider="Deka\Media\MediaServiceProvider" --tag="migrations"
php artisan migrate
You should publish the config file with:
php artisan vendor:publish --provider="Deka\Media\MediaServiceProvider" --tag="config"
This is the contents of the published config file:
return [
];
Usage
$laravel-media = new Deka\Media();
echo $media->echoPhrase('Hello, Deka!');
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email freek@spatie.be instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 145
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-06