bigbeartech/attachments

此包已被放弃,不再维护。没有建议的替代包。

一个用于上传媒体到Laravel的简单包

0.0.5 2016-07-18 23:36 UTC

This package is not auto-updated.

Last update: 2022-03-25 10:07:51 UTC


README

GitHub license

安装

通过composer安装 - 在终端中

composer require bigbeartech/attachments

现在将以下内容添加到你的config/app.php文件中的providers数组中

BigBearTech\Attachments\AttachmentsServiceProvider::class,

并将以下内容添加到config/app.php文件中的aliases数组中

"Attachment" => "BigBearTech\Attachments\Facades\Attachment",

然后你需要在终端中运行以下命令以复制配置和迁移文件

php artisan vendor:publish --provider="BigBearTech\Attachments\AttachmentsServiceProvider"

在运行迁移之前,你可能想查看config/attachments.php文件,并将table属性更改为你希望使用的表名。之后运行迁移

php artisan migrate