<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Server Requirements
    |--------------------------------------------------------------------------
    |
    | This is the default Laravel server requirements, you can add as many
    | as your application require, we check if the extension is enabled
    | by looping through the array and run "extension_loaded" on it.
    |
    */
    'core' => [
        'minPhpVersion' => '7.3',
    ],
    'final' => [
        'key' => true,
        'publish' => false,
    ],
    'requirements' => [
        'php' => [
            'Ctype',
            'Fileinfo',
            'JSON',
            'Mbstring',
            'OpenSSL',
            'PDO',
            'Tokenizer',
            'XML',
        ],
        'apache' => [
            'mod_rewrite',
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Folders Permissions
    |--------------------------------------------------------------------------
    |
    | This is the default Laravel folders permissions, if your application
    | requires more permissions just add them to the array list bellow.
    |
    */
    'permissions' => [
        'storage/framework/'     => '775',
        'storage/logs/'          => '775',
        'bootstrap/cache/'       => '775',
        '.env'                   => '777',
    ],

    /*
    |--------------------------------------------------------------------------
    | Environment Form Wizard Validation Rules & Messages
    |--------------------------------------------------------------------------
    |
    | This are the default form field validation rules. Available Rules:
    | https://laravel.com/docs/5.4/validation#available-validation-rules
    |
    */
    'environment' => [
        'form' => [
            'rules' => [
                'app_name'              => 'sometimes|required|string|max:50',
                'environment'           => 'sometimes|required|string|max:50',
                'environment_custom'    => 'sometimes|required_if:environment,other|max:50',
                'app_debug'             => 'sometimes|required|string',
                'app_log_level'         => 'sometimes|required|string|max:50',
                'app_url'               => 'sometimes|required|url',
                'app_timezone'          => 'sometimes|required',
                'admin_email'           => 'sometimes|required|email',
                'admin_password'        => 'sometimes|required|min:6|confirmed',
                'db_connection'         => 'sometimes|required|string|max:50',
                'db_host'               => 'sometimes|required|string|max:50',
                'db_port'               => 'sometimes|required|numeric',
                'db_database'           => 'sometimes|required|string|max:50',
                'db_username'           => 'sometimes|required|string|max:50',
                'db_password'           => 'sometimes|nullable|string|max:50',
                'broadcast_driver'      => 'sometimes|required|string|max:50',
                'cache_driver'          => 'sometimes|required|string|max:50',
                'session_driver'        => 'sometimes|required|string|max:50',
                'queue_driver'          => 'sometimes|required|string|max:50',
                'redis_hostname'        => 'sometimes|required|string|max:50',
                'redis_password'        => 'sometimes|required|string|max:50',
                'redis_port'            => 'sometimes|required|numeric',
                'mail_driver'           => 'sometimes|required|string|max:50',
                'mail_host'             => 'sometimes|required|string|max:50',
                'mail_port'             => 'sometimes|required|string|max:50',
                'mail_username'         => 'sometimes|required|string|max:50',
                'mail_password'         => 'sometimes|required|string|max:50',
                'mail_encryption'       => 'sometimes|required|string|max:50',
                'pusher_app_id'         => 'max:50',
                'pusher_app_key'        => 'max:50',
                'pusher_app_secret'     => 'max:50',
            ],
            'tabs' => [
                'environment' => false,
                'database' => true,
                'user' => true,
                'application' => false,
            ],
        ],
        'options' => [
            'wizard' => true,
            'classic' => false,
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Installed Middleware Options
    |--------------------------------------------------------------------------
    | Different available status switch configuration for the
    | canInstall middleware located in `canInstall.php`.
    |
    */
    'installed' => [
        'redirectOptions' => [
            'route' => [
                'name' => 'welcome',
                'data' => [],
            ],
            'abort' => [
                'type' => '404',
            ],
            'dump' => [
                'data' => 'Dumping a not found message.',
            ],
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Selected Installed Middleware Option
    |--------------------------------------------------------------------------
    | The selected option fo what happens when an installer instance has been
    | Default output is to `/resources/views/error/404.blade.php` if none.
    | The available middleware options include:
    | route, abort, dump, 404, default, ''
    |
    */
    'installedAlreadyAction' => '',

    /*
    |--------------------------------------------------------------------------
    | Updater Enabled
    |--------------------------------------------------------------------------
    | Can the application run the '/update' route with the migrations.
    | The default option is set to False if none is present.
    | Boolean value
    |
    */
    'updaterEnabled' => 'true',

];
