新增LoadMigrationFiles事件,支持扩展提供的数据库迁移文件

This commit is contained in:
augushong
2024-10-15 18:06:25 +08:00
parent c79ad6b986
commit d0add06ca0
3 changed files with 20 additions and 0 deletions

View File

@@ -233,6 +233,15 @@ function build_upload_url($url, $upload_type = null)
return Filesystem::disk($upload_type)->url($url);
}
/**
* 执行扩展事件
*
* @param string $name 事件名称
* @param string $key 处理的key
* @param string $type 处理模式
* @param array $params 传参
* @return array
*/
function event_handle_result($name, $key, $type = 'all', $params = []) : array
{
$list_result = Event::trigger($name, $params);