joaopaulolndev / filament-edit-env
Package to edit env file
Fund package maintenance!
joaopaulolndev
Requires
- php: ^8.1
- filament/filament: ^3.0
- riodwanto/filament-ace-editor: ^1.0
- spatie/laravel-package-tools: ^1.15.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.1
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
README
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!
Installation
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"
Usage
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
Testing
composer test
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.