新增附件事件

This commit is contained in:
JaguarJack
2020-06-01 21:25:46 +08:00
parent 39c0ec4c48
commit fe6ea82014
3 changed files with 67 additions and 36 deletions

View File

@@ -0,0 +1,17 @@
<?php
namespace catchAdmin\system\events;
use catchAdmin\system\model\Attachments;
class AttachmentEvent
{
public function handle($params)
{
$file = $params['file'];
unset($params['file']);
Attachments::store($params, $file);
}
}