geo-sot/filament-env-editor

Access .env file though Filament admin panel
38,487 24
Install
composer require geo-sot/filament-env-editor
Latest Version:2.0.1
PHP:^8.2
License:MIT
Last Updated:Jul 12, 2026
Links: GitHub  ·  Packagist
Maintainer: geo.sotis@gmail.com

Filament Env Editor

Latest Version on Packagist Total Downloads

A Simple .env file Viewer plugin for your Filament Panels.

Provides features like, manage current .env variables, and a handy backup functionality page

Installation

You can install the package via composer:

composer require geo-sot/filament-env-editor

Versions supported:

Filament Version Package Version
3.x 0.x
4.x 1.x
5.x 2.x

Usage

Add the GeoSot\FilamentEnvEditor\FilamentEnvEditorPlugin to your panel config.

use GeoSot\FilamentEnvEditor\FilamentEnvEditorPlugin;

class AdminPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            // ...
            ->plugin(
                FilamentEnvEditorPlugin::make()
            );
    }
}

Configuration

Customizing the navigation item

FilamentEnvEditorPlugin::make()
    ->navigationGroup('System Tools')
    ->navigationLabel('My Env')
    ->navigationIcon('heroicon-o-cog-8-tooth')
    ->navigationSort(1)
    ->slug('env-editor')

Hiding keys

Some keys you may consider to be particularly sensitive and don't wish to expose them, even through this package. You can hide them through this interface:

FilamentEnvEditorPlugin::make()
    ->hideKeys('APP_KEY', 'BCRYPT_ROUNDS')

Authorization

If you would like to prevent certain users from accessing the logs page, you should add a authorize callback in the FilamentLEnvEditorPlugin chain.

FilamentEnvEditorPlugin::make()
  ->authorize(
      fn () => auth()->user()->isAdmin()
  )

Customizing the log page

To customize the "env-editor" page, you can extend the GeoSot\FilamentEnvEditor\Pages\ViewEnv page and override its methods.

use GeoSot\FilamentEnvEditor\Pages\ViewEnv as BaseViewEnvEditor;

class ViewEnv extends BaseViewEnvEditor
{
    // Your implementation
}
use App\Filament\Pages\ViewEnv;

FilamentEnvEditorPlugin::make()
  ->viewPage(CustomEnvPage::class)

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). Please see License File for more information.

Related Packages

geo-sot/laravel-env-editor

A laravel Package that supports .Env File, editing and backup

125,212 85
andhikamaheva/date

A date library to help you work with dates in different languages

13 1
vlados/laravel-blade-crawler-detect

Boost Lighthouse and PageSpeed scores by hiding cookie banners, chat widgets and...

5,439 0
maystro/filament-popup-modal

A comprehensive modal dialog system for FilamentPHP with progress bars, callback...

7 1