PHP Class Brotzka\DotenvEditor\Http\Controller\EnvController

Inheritance: extends Illuminate\Routing\Controller
Mostrar archivo Open project: brotzka/laravel-dotenv-editor

Public Methods

Method Description
add ( Illuminate\Http\Request $request )
createBackup ( ) : Illuminate\Http\RedirectResponse
delete ( Illuminate\Http\Request $request )
deleteBackup ( $timestamp ) : Illuminate\Http\RedirectResponse
download ( boolean $filename = false ) : BinaryFileResponse
getDetails ( null $timestamp = NULL ) : string
overview ( Illuminate\Http\Request $request ) : Illuminate\Contracts\View\Factory | Illuminate\View\View
restore ( $backuptimestamp ) : Illuminate\Http\RedirectResponse | Redirector
update ( Illuminate\Http\Request $request )
upload ( Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse | Redirector

Method Details

add() public method

public add ( Illuminate\Http\Request $request )
$request Illuminate\Http\Request Adds a new entry to your .env-file.

createBackup() public method

public createBackup ( ) : Illuminate\Http\RedirectResponse
return Illuminate\Http\RedirectResponse Creates a backup of the current .env.

delete() public method

public delete ( Illuminate\Http\Request $request )
$request Illuminate\Http\Request Deletes the given entry from your .env-file

deleteBackup() public method

public deleteBackup ( $timestamp ) : Illuminate\Http\RedirectResponse
$timestamp
return Illuminate\Http\RedirectResponse

download() public method

public download ( boolean $filename = false ) : BinaryFileResponse
$filename boolean
return Symfony\Component\HttpFoundation\BinaryFileResponse Lets you download the choosen backup-file.

getDetails() public method

public getDetails ( null $timestamp = NULL ) : string
$timestamp null
return string Returns the content as JSON

overview() public method

public overview ( Illuminate\Http\Request $request ) : Illuminate\Contracts\View\Factory | Illuminate\View\View
$request Illuminate\Http\Request
return Illuminate\Contracts\View\Factory | Illuminate\View\View Shows the overview, where you can visually edit your .env-file.

restore() public method

public restore ( $backuptimestamp ) : Illuminate\Http\RedirectResponse | Redirector
$backuptimestamp
return Illuminate\Http\RedirectResponse | Illuminate\Routing\Redirector Restore a backup

update() public method

public update ( Illuminate\Http\Request $request )
$request Illuminate\Http\Request Updates the given entry from your .env.

upload() public method

public upload ( Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse | Redirector
$request Illuminate\Http\Request
return Illuminate\Http\RedirectResponse | Illuminate\Routing\Redirector Upload a .env-file and replace the current one