Skip to content

Commit c28e0ba

Browse files
committed
config
1 parent 1045029 commit c28e0ba

File tree

3 files changed

+20
-22
lines changed

3 files changed

+20
-22
lines changed

src/Providers/ModuleServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ModuleServiceProvider extends ServiceProvider
1515
{
1616
public function boot(): void
1717
{
18-
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'typicms.modules');
18+
$this->mergeConfigFrom(__DIR__.'/../config/places.php', 'typicms.modules.places');
1919

2020
$this->loadViewsFrom(__DIR__.'/../../resources/views/', 'places');
2121

src/config/config.php

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/config/places.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
return [
4+
'linkable_to_page' => true,
5+
'per_page' => 30,
6+
'order' => [
7+
'title' => 'asc',
8+
],
9+
'sidebar' => [
10+
'icon' => '<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-geo-alt" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M12.166 8.94C12.696 7.867 13 6.862 13 6A5 5 0 0 0 3 6c0 .862.305 1.867.834 2.94.524 1.062 1.234 2.12 1.96 3.07A31.481 31.481 0 0 0 8 14.58l.208-.22a31.493 31.493 0 0 0 1.998-2.35c.726-.95 1.436-2.008 1.96-3.07zM8 16s6-5.686 6-10A6 6 0 0 0 2 6c0 4.314 6 10 6 10z"/><path fill-rule="evenodd" d="M8 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/></svg>',
11+
'weight' => 40,
12+
],
13+
'permissions' => [
14+
'read places' => 'Read',
15+
'create places' => 'Create',
16+
'update places' => 'Update',
17+
'delete places' => 'Delete',
18+
],
19+
];

0 commit comments

Comments
 (0)