MichaelBerry/mbimage

这是一个图像服务,旨在接收图像并为网站使用做准备。

v1.0.0 2020-12-02 03:12 UTC

This package is auto-updated.

Last update: 2024-09-29 06:08:34 UTC


README

这是一个图像服务,旨在接收图像并为网站使用做准备。

安装

您可以通过composer使用以下命令安装此包:

composer require michaelberry/mbimage

此包将自动注册自己。

要发布配置文件和视图文件,请运行

php artisan vendor:publish --provider="MichaelBerry\MBImage\MBImageServiceProvider"

这将发布一个名为mbimage.php的文件到您的配置目录,内容如下:

return [
    'type' => 'S3', // if you want the image to be uploaded to Amazon S3, leave blank if you want it to be in your local public folder
    'path' => 'mbuploads' // path directory
];