<?php
include 'functions.php';
Route::group(['prefix' => 'install', 'as' => 'LaravelInstaller::', 'namespace' => 'Froiden\LaravelInstaller\Controllers', 'middleware' => ['web', 'install']], function () {
    Route::get('/', [
        'as' => 'welcome',
        'uses' => 'WelcomeController@welcome'
    ]);

    Route::get('/admin-details', [
        'as' => 'admin-details',
        'uses' => 'WelcomeController@adminDetails',
    ]);

    Route::post('/verify', [
        'as' => 'verify',
        'uses' => 'WelcomeController@verifyPurchaseCode',
    ]);

    Route::get('environment', [
        'as' => 'environment',
        'uses' => 'EnvironmentController@environment'
    ]);


    Route::get('environment/save', [
        'as' => 'environmentSave',
        'uses' => 'EnvironmentController@save'
    ]);

    Route::get('requirements', [
        'as' => 'requirements',
        'uses' => 'RequirementsController@requirements'
    ]);

    Route::get('permissions', [
        'as' => 'permissions',
        'uses' => 'PermissionsController@permissions'
    ]);

    Route::get('database', [
        'as' => 'database',
        'uses' => 'DatabaseController@database'
    ]);

    Route::get('final', [
        'as' => 'final',
        'uses' => 'FinalController@finish'
    ]);

});
