file.create:after $file /site/config/config.php return [ 'hooks' => [ 'file.create:after' => function ($file) { // your code goes here } ] ]