1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-06 00:24:02 +00:00
This commit is contained in:
Samuel Štancl 2019-08-16 22:09:01 +02:00
commit a92690cea8
61 changed files with 51214 additions and 0 deletions

30
config.php Normal file
View file

@ -0,0 +1,30 @@
<?php
return [
'baseUrl' => '',
'production' => false,
'siteName' => 'stancl/tenancy documentation',
'siteDescription' => 'A Laravel multi-database tenanyc package that respects your code.',
// Algolia DocSearch credentials
'docsearchApiKey' => '',
'docsearchIndexName' => '',
// navigation menu
'navigation' => require_once('navigation.php'),
// helpers
'isActive' => function ($page, $path) {
return ends_with(trimPath($page->getPath()), trimPath($path));
},
'isActiveParent' => function ($page, $menuItem) {
if (is_object($menuItem) && $menuItem->children) {
return $menuItem->children->contains(function ($child) use ($page) {
return trimPath($page->getPath()) == trimPath($child);
});
}
},
'url' => function ($page, $path) {
return starts_with($path, 'http') ? $path : '/' . trimPath($path);
},
];