catchAdmin/catch/system/events/AttachmentEvent.php

17 lines
270 B
PHP
Raw Normal View History

2020-06-01 21:25:46 +08:00
<?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);
}
}