Skip to content
Fabian Hagen edited this page Aug 1, 2016 · 1 revision

To use the DotenvEditor, you have to include the Class in your controller or model.

Here is an example controller:

namespace App\Http\Controllers;

use Brotzka\DotenvEditor\DotenvEditor;
use Brotzka\DotenvEditor\Exceptions\DotEnvException;

class EnvController extends Controller
{
    public function test()
    {
        $env = new DotenvEditor();
        echo $env->getBackupPath();
    }
}