LinkStack/config/env-editor.php
Julian Prieber fef2e09aa9 Added built in Config Editor
LittleLink Custom now includes an .env config editor. This editor can be accessed via the Admin Panel under Admin>Config.
This editor allows admins to edit, backup, download and upload the .env configuration file. All in all, the new feature, allows users to more easily edit the configuration file, contributing to my goal of making LittleLink Custom easier to use.

Read more about this topic on the Blog https://blog.littlelink-custom.com/built-in-config-editor
2022-03-16 14:16:03 +01:00

47 lines
1.5 KiB
PHP

<?php
return [
/*
|--------------------------------------------------------------------------
| Files Config
|--------------------------------------------------------------------------
*/
'paths' => [
// .env file directory
'env' => base_path(),
//backup files directory
'backupDirectory' => 'backups',
],
// .env file name
'envFileName' => '.env',
/*
|--------------------------------------------------------------------------
| Routes group config
|--------------------------------------------------------------------------
|
*/
'route' => [
// Prefix url for route Group
'prefix' => 'env-editor',
// Routes base name
'name' => 'env-editor',
// Middleware(s) applied on route Group
'middleware' => ['web', 'admin'],
],
/* ------------------------------------------------------------------------------------------------
| Time Format for Views and parsed backups
| ------------------------------------------------------------------------------------------------
*/
'timeFormat' => 'd/m/Y H:i:s',
/* ------------------------------------------------------------------------------------------------
| Set Views options
| ------------------------------------------------------------------------------------------------
| Here you can set The "extends" blade of index.blade.php
*/
'layout' => 'env-editor::layout',
];