Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
61b75243
Unverified
Commit
61b75243
authored
Sep 18, 2017
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Creating & loading a settings configuration file for dashboard
parent
f242a2af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
settings.php
Modules/Dashboard/Config/settings.php
+22
-0
DashboardServiceProvider.php
Modules/Dashboard/Providers/DashboardServiceProvider.php
+1
-0
No files found.
Modules/Dashboard/Config/settings.php
0 → 100644
View file @
61b75243
<?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'
,
],
];
Modules/Dashboard/Providers/DashboardServiceProvider.php
View file @
61b75243
...
...
@@ -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'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment