PHPackages                             mohkoma/laravel-env-editor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mohkoma/laravel-env-editor

ActiveProject[Utility &amp; Helpers](/categories/utility)

mohkoma/laravel-env-editor
==========================

1.0.2(3y ago)06MITPHPPHP ^7.3|^8.0

Since Nov 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mohkoma/laravel-env-editor)[ Packagist](https://packagist.org/packages/mohkoma/laravel-env-editor)[ RSS](/packages/mohkoma-laravel-env-editor/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

About This package
------------------

[](#about-this-package)

This package allows you to edit your .env file directly in your project. The idea to built it was after we moved our project from Forge to AWS and we wanted to keep the same experience that Forge provide when you edit the environment file. I tried also to keep the same Forge styles and behaviour (Because Forge is 💪).

[![Env editor](screenshot.png)](screenshot.png)

How to Install?
---------------

[](#how-to-install)

`composer require mohkoma/laravel-env-editor`

Then you need to publish the assets `php artisan vendor:publish --tag=env-editor-assets`

Requires
--------

[](#requires)

PHP &gt;= 7.4 Laravel &gt;= 7.0

Usage
-----

[](#usage)

After you install the package you should be ready to go, The default route to access the editor is `/dev/environment` but you could also change from the config file. To publish the config file, just run: `php artisan vendor:publish --tag=env-editor-config`

In case if you want to customise your view, you can publish the view file using `php artisan vendor:publish --tag=env-editor-views`

Please, Be sure that you give the right permissions using middlewares

```
