From ff22b8abdc381d54206690bb2e57fe8679943572 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Wed, 14 Nov 2018 16:41:07 +1030 Subject: [PATCH] Publish core assets when migrating --- framework/core/src/Database/Console/MigrateCommand.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/framework/core/src/Database/Console/MigrateCommand.php b/framework/core/src/Database/Console/MigrateCommand.php index 1e0f1b051..25bf51cbe 100644 --- a/framework/core/src/Database/Console/MigrateCommand.php +++ b/framework/core/src/Database/Console/MigrateCommand.php @@ -74,5 +74,12 @@ class MigrateCommand extends AbstractCommand } $this->container->make('Flarum\Settings\SettingsRepositoryInterface')->set('version', $this->container->version()); + + $this->info('Publishing assets...'); + + $this->container->make('files')->copyDirectory( + base_path().'/vendor/components/font-awesome/webfonts', + public_path().'/assets/fonts' + ); } }