-
- Downloads
feat: update website name retrieval and configuration handling
- Changed the retrieval of the website name in the sidebar component to use the `DbConfig` model for dynamic configuration. - Updated the `set` method in the `DbConfig` model to allow null values for configuration. - Refactored the public layout to use the website name from `DbConfig` instead of a hardcoded value. - Adjusted the default value for maintenance mode and website name in the settings view to match the new configuration method. - Modified the middleware to check the maintenance mode from the `DbConfig` model. - Updated the `SettingsController` to use `has` instead of `filled` for checking request inputs related to maintenance mode and website name.
parent
557e8161
No related branches found
No related tags found
Showing
- app/Http/Controllers/Admin/SettingsController.php 2 additions, 2 deletionsapp/Http/Controllers/Admin/SettingsController.php
- app/Http/Middleware/CheckPrivateModeMiddleware.php 2 additions, 1 deletionapp/Http/Middleware/CheckPrivateModeMiddleware.php
- app/Models/DbConfig.php 7 additions, 1 deletionapp/Models/DbConfig.php
- resources/views/admin/settings/website-config.blade.php 2 additions, 2 deletionsresources/views/admin/settings/website-config.blade.php
- resources/views/components/admin/sidebar.blade.php 1 addition, 1 deletionresources/views/components/admin/sidebar.blade.php
- resources/views/layouts/public.blade.php 6 additions, 2 deletionsresources/views/layouts/public.blade.php
Loading
Please register or sign in to comment