diff --git a/config/dashboard.php b/config/dashboard.php index 32a2531..cd935b7 100644 --- a/config/dashboard.php +++ b/config/dashboard.php @@ -13,10 +13,24 @@ /* * When the dashboard uses the `auto` theme, these coordinates will be used - * to determine whether the sun is up or down + * to determine whether the sun is up or down. */ 'auto_theme_location' => [ 'lat' => 51.260197, 'lng' => 4.402771, ], + + /* + * These scripts will be loaded when the dashboard is displayed. + */ + 'scripts' => [ + 'alpinejs' => 'https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js', + ], + + /* + * These stylesheets will be loaded when the dashboard is displayed. + */ + 'stylesheets' => [ + 'inter' => 'https://rsms.me/inter/inter.css' + ], ]; diff --git a/src/DashboardServiceProvider.php b/src/DashboardServiceProvider.php index eedcdcb..e3f7cd7 100644 --- a/src/DashboardServiceProvider.php +++ b/src/DashboardServiceProvider.php @@ -15,8 +15,8 @@ class DashboardServiceProvider extends ServiceProvider public function boot() { $this->app->make(Dashboard::class) - ->script('https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js') - ->stylesheet('https://rsms.me/inter/inter.css') + ->script(config('dashboard.scripts.alpinejs')) + ->stylesheet(config('dashboard.stylesheets.inter')) ->inlineStylesheet(file_get_contents(__DIR__.'/../resources/dist/dashboard.min.css')); $this->loadViewsFrom(__DIR__ . '/../resources/views', 'dashboard');