catchAdmin/catch/system/events/AttachmentEvent.php
2020-06-01 21:25:46 +08:00

17 lines
270 B
PHP

<?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);
}
}