avexsoft/filament-donkey
最新稳定版本:1.0.9
Composer 安装命令:
composer require avexsoft/filament-donkey
包简介
The smart-ass Filament plugin to manage `config()` in production
README 文档
README
Filament Donkey
This plugin allows you to modify your Laravel config() in code/any environment without giving access to the .env file.
It's a filament ui to leverage this package Donkey
Installation
Step 1: Install the package via composer.
composer require avexsoft/filament-donkey
Step 2: Add in AdminPanelProvider.php
use Avexsoft\FilamentDonkey\FilamentDonkeyPlugin; ->plugins([ FilamentDonkeyPlugin::make(), ])
Usage
Using the power of Donkey, this package make it easier to utilize filament ui conveniency to do such things:
Modify Project Settings
Build your own custom project page setting using the ConfigTextInput and ConfigToggle
<?php namespace Avexsoft\FilamentDonkey\Filament\Pages; use Avexsoft\FilamentDonkey\Filament\Forms\Components\ConfigTextInput; use Avexsoft\FilamentDonkey\Filament\Forms\Components\ConfigToggle; use Filament\Schemas\Components\Section; class ProjectSettings extends ConfigurationPage { public static function form(\Filament\Schemas\Schema $schema): \Filament\Schemas\Schema { return $schema ->statePath('data') ->schema([ Section::make('Application') ->aside() ->description('Configuration for APP_xxx') ->schema([ ConfigTextInput::make('app.name') ->label('Application name'), ConfigToggle::make('app.debug') ->label('Application debug mode'), ]), ]); } }
Override Config Using UI
- This page allows especially developer to add, override or modify config.
Config Keyis the key of the config e.gapp.name,app.debugValuewill be the desired value of the specific configIs Maskedwill obscured sensitive config fieldsIs Activemake it possible to ignore a override config.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 196
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-12