avexsoft / filament-donkey
The smart-ass Filament plugin to manage `config()` in production
Installs: 171
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 0
Forks: 0
Open Issues: 2
Type:laravel-library
pkg:composer/avexsoft/filament-donkey
Requires
- avexsoft/donkey: ^1
- composer/installers: ^2.3
- filament/filament: ^4.3.1
Requires (Dev)
- orchestra/testbench: ^10.5
- phpunit/phpunit: ^12.3
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.