Files
dpl/scripts/themes/publish.php
T

9 lines
360 B
PHP

<?php
// Publish only runtime assets for the selected instance theme.
require __DIR__.'/../../vendor/autoload.php';
$app=require __DIR__.'/../../bootstrap/app.php';
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
$theme=admin_setting('frontend_theme');
(new App\Services\ThemeService)->publish($theme);
echo $theme." assets published.\n";