This is a plugin for FilamentPHP that, through an action, can edit the environment file.
📝 Note: There is a condition in the plugin that prevents it from being used in production!
You can install the package via composer:
composer require joaopaulolndev/filament-edit-env
Optionally, you can publish the views using
php artisan vendor:publish --tag="filament-edit-env-views"
Add in AdminPanelProvider.php
use Joaopaulolndev\FilamentEditEnv\FilamentEditEnvPlugin; ->plugins([ FilamentEditEnvPlugin::make() ->showButton(fn () => auth()->user()->id === 1) ->setIcon('heroicon-o-cog'),])
📝 Note: for the code editor field, I am using the plugin Filament Ace Editor
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.
João Paulo is a self-taught full-stack developer who loves PHP, Laravel and Filament. He is a Brazilian developer that loves to contribute to open-source projects.