\App\Http\ControllersInstallController

Class InstallController TODO: flush the echos while processing.

Summary

Methods
Properties
Constants
save()
index()
process()
installShop()
postInstall()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

save()

save(array  $shop_config = array()) : boolean

Save to .env file If new key is supplied it will be appended If existing key is supplied, value will be replaced If the key is not supplied, then the line will be ignored.

Parameters

array $shop_config

Returns

boolean

index()

index() : mixed

TODO: Display form to save to .env.

Returns

mixed

process()

process(\App\Http\Requests\InstallAdminUserRequest  $request) : \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector

Method to install FlyMyShop This method checks that the database config is correct and the install step has not been done previously. It does migrations and seeding of sample data.

TODO: make seeding of sample data optional

Parameters

\App\Http\Requests\InstallAdminUserRequest $request

Returns

\Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector

installShop()

installShop(\App\Http\Requests\InstallRequest  $request) : \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector

Save DB details to .env file.

Parameters

\App\Http\Requests\InstallRequest $request

Returns

\Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector

postInstall()

postInstall() : \Illuminate\Contracts\View\Factory|\Illuminate\View\View

Checks if the application has already been installed and then allows the user to enter database config details.

Returns

\Illuminate\Contracts\View\Factory|\Illuminate\View\View