Creating & loading a settings configuration file for dashboard

parent f242a2af
<?php
return [
'welcome-title' => [
'description' => 'dashboard::dashboard.welcome-title',
'view' => 'text',
'translatable' => true,
'default' => 'Welcome on your backend!'
],
'welcome-description' => [
'description' => 'dashboard::dashboard.welcome-description',
'view' => 'textarea',
'translatable' => true,
'default' => 'Did you know you can access the documentation by pressing F1?'
],
'welcome-enabled' => [
'description' => 'dashboard::dashboard.welcome-enabled',
'view' => 'checkbox',
'translatable' => false,
'default' => '1',
],
];
......@@ -59,6 +59,7 @@ class DashboardServiceProvider extends ServiceProvider
$this->publishConfig('dashboard', 'permissions');
$this->publishConfig('dashboard', 'config');
$this->publishConfig('dashboard', 'settings');
$this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment