<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Application Debug Mode
    |--------------------------------------------------------------------------
    |
    | When your application is in debug mode, detailed error messages with
    | stack traces will be shown on every error that occurs within your
    | application. If disabled, a simple generic error page is shown.
    |
    */
	
    'env' => env('APP_ENV', 'production'),

    'debug' => env('APP_DEBUG', true),

    'log' => 'daily',

    /*
    |--------------------------------------------------------------------------
    | Application URL
    |--------------------------------------------------------------------------
    |
    | This URL is used by the console to properly generate URLs when using
    | the Artisan command line tool. You should set this to the root of
    | your application so that it is used when running Artisan tasks.
    |
    */
  
    /*
    'url' => 'http://ec2-35-183-251-153.ca-central-1.compute.amazonaws.com',
    */
   
   'url' => env('APP_URL', 'http://localhost'),

   'force_https' => env('FORCE_HTTPS', false),

    /*
    |--------------------------------------------------------------------------
    | Application Timezone
    |--------------------------------------------------------------------------
    |
    | Here you may specify the default timezone for your application, which
    | will be used by the PHP date and date-time functions. We have gone
    | ahead and set this to a sensible default for you out of the box.
    |
    */

    'timezone' => 'UTC',

    /*
    |--------------------------------------------------------------------------
    | Application Locale Configuration
    |--------------------------------------------------------------------------
    |
    | The application locale determines the default locale that will be used
    | by the translation service provider. You are free to set this value
    | to any of the locales which will be supported by the application.
    |
    */

    'locale' => 'en',

    /*
    |--------------------------------------------------------------------------
    | Application Fallback Locale
    |--------------------------------------------------------------------------
    |
    | The fallback locale determines the locale to use when the current one
    | is not available. You may change the value to correspond to any of
    | the language folders that are provided through your application.
    |
    */

    'fallback_locale' => 'en',

    /*
    |--------------------------------------------------------------------------
    | Encryption Key
    |--------------------------------------------------------------------------
    |
    | This key is used by the Illuminate encrypter service and should be set
    | to a random, 32 character string, otherwise these encrypted strings
    | will not be safe. Please do this before deploying an application!
    |
    */

    'key' => env('APP_KEY', 'base64:dbEga+tt83BlGyx//e5ViqS+Z1qL/0zUrBq3YhCdTXc='),

    /*
    |--------------------------------------------------------------------------
    | Autoloaded Service Providers
    |--------------------------------------------------------------------------
    |
    | The service providers listed here will be automatically loaded on the
    | request to your application. Feel free to add your own services to
    | this array to grant expanded functionality to your applications.
    |
    */

    'providers' => [

        /*
         * Laravel Framework Service Providers (deduplicated)
         */
        Illuminate\Auth\AuthServiceProvider::class,
        Illuminate\Broadcasting\BroadcastServiceProvider::class,
        Illuminate\Bus\BusServiceProvider::class,
        Illuminate\Cache\CacheServiceProvider::class,
        Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
        Illuminate\Cookie\CookieServiceProvider::class,
        Illuminate\Database\DatabaseServiceProvider::class,
        Illuminate\Encryption\EncryptionServiceProvider::class,
        Illuminate\Filesystem\FilesystemServiceProvider::class,
        Illuminate\Foundation\Providers\FoundationServiceProvider::class,
        Illuminate\Hashing\HashServiceProvider::class,
        Illuminate\Mail\MailServiceProvider::class,
        Illuminate\Notifications\NotificationServiceProvider::class,
        Illuminate\Pagination\PaginationServiceProvider::class,
        Illuminate\Pipeline\PipelineServiceProvider::class,
        Illuminate\Queue\QueueServiceProvider::class,
        Illuminate\Redis\RedisServiceProvider::class,
        Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
        Illuminate\Session\SessionServiceProvider::class,
        Illuminate\Translation\TranslationServiceProvider::class,
        Illuminate\Validation\ValidationServiceProvider::class,
        Illuminate\View\ViewServiceProvider::class,

        /**
         * Package Service Providers
         * 
         * Essential packages manually registered for reliability
         */
        Idwakhalweb\Theme\Provider\ThemeServiceProvider::class,
        Idwakhalweb\Image\ImageServiceProvider::class,
        Idwakhalweb\Menu\MenuServiceProvider::class,
        Idwakhalweb\Hook\HookServiceProvider::class, // Re-enabled for post processing

        /**
         * Application Service Providers
         */
        App\Providers\AppServiceProvider::class,
        App\Providers\AuthServiceProvider::class,
        App\Providers\EventServiceProvider::class,
        App\Providers\RouteServiceProvider::class,
        App\Providers\TelescopeServiceProvider::class,
        App\Providers\ConfigurationServiceProvider::class,
        App\Providers\ConfigServiceProvider::class,
        App\Providers\CustomValidationServiceProvider::class,
        App\Providers\AddonServiceProvider::class,
        App\Providers\PhotoServiceProvider::class,
        App\Providers\PostServiceProvider::class,
        App\Providers\NotificationServiceProvider::class,
        App\Providers\ThemeManagerServiceProvider::class,
        App\Providers\BusServiceProvider::class,
        App\Providers\ConnectionServiceProvider::class,
        App\Providers\QueryLogServiceProvider::class,
        //App\Providers\EmoticonServiceProvider::class, // Re-enabled for post content
        App\Providers\HashtagServiceProvider::class, // Re-enabled for post content  
        App\Providers\MentionServiceProvider::class, // Re-enabled for post content
        App\Providers\MenuServiceProvider::class, // Re-enabled with manual package registration
        App\Providers\AdmincpServiceProvider::class, // Re-enabled for admin features
        App\Providers\ThemeCompatibilityServiceProvider::class,
        App\Providers\CliRedirectOverrideProvider::class,
    ],

    /*
    |--------------------------------------------------------------------------
    | Service Provider Manifest
    |--------------------------------------------------------------------------
    |
    | The service provider manifest is used by Laravel to lazy load service
    | providers which are not needed for each request, as well to keep a
    | list of all of the services. Here, you may set its storage spot.
    |
    */

    'manifest' => storage_path().'/meta',

    /*
    |--------------------------------------------------------------------------
    | Class Aliases
    |--------------------------------------------------------------------------
    |
    | This array of class aliases will be registered when this application
    | is started. However, feel free to register as many as you wish as
    | the aliases are "lazy" loaded so they don't hinder performance.
    |
    */

    'aliases' => [

        'App' => 'Illuminate\Support\Facades\App',
        'Artisan' => 'Illuminate\Support\Facades\Artisan',
        'Auth' => 'Illuminate\Support\Facades\Auth',
        'Blade' => 'Illuminate\Support\Facades\Blade',
        'Cache' => 'Illuminate\Support\Facades\Cache',
        'ClassLoader' => 'Illuminate\Support\ClassLoader',
        'Config' => 'Illuminate\Support\Facades\Config',
        'Controller' => 'Illuminate\Routing\Controller',
        'Cookie' => 'Illuminate\Support\Facades\Cookie',
        'Crypt' => 'Illuminate\Support\Facades\Crypt',
        'DB' => 'Illuminate\Support\Facades\DB',
        'Eloquent' => 'Illuminate\Database\Eloquent\Model',
        'Event' => 'Illuminate\Support\Facades\Event',
        'File' => 'Illuminate\Support\Facades\File',
        //'Form' => 'Illuminate\Support\Facades\Form',
		'Form' => 'Collective\Html\FormFacade',
        'Hash' => 'Illuminate\Support\Facades\Hash',
        //'HTML' => 'Illuminate\Support\Facades\HTML',
		'HTML' => 'Collective\Html\HtmlFacade',
        'Input' => 'Illuminate\Support\Facades\Input',
        'Lang' => 'Illuminate\Support\Facades\Lang',
        'Log' => 'Illuminate\Support\Facades\Log',
        'Mail' => 'Illuminate\Support\Facades\Mail',
        'Paginator' => 'Illuminate\Support\Facades\Paginator',
        'Password' => 'Illuminate\Support\Facades\Password',
        'Queue' => 'Illuminate\Support\Facades\Queue',
        'Redirect' => 'Illuminate\Support\Facades\Redirect',
        'Redis' => 'Illuminate\Support\Facades\Redis',
        'Request' => 'Illuminate\Support\Facades\Request',
        'Response' => 'Illuminate\Support\Facades\Response',
        'Route' => 'Illuminate\Support\Facades\Route',
        'Schema' => 'Illuminate\Support\Facades\Schema',
        'Seeder' => 'Illuminate\Database\Seeder',
        'Session' => 'Illuminate\Support\Facades\Session',
        'SSH' => 'Illuminate\Support\Facades\SSH',
        'Str' => 'Illuminate\Support\Str',
        'URL' => 'Illuminate\Support\Facades\URL',
        'Validator' => 'Illuminate\Support\Facades\Validator',
        'View' => 'Illuminate\Support\Facades\View',
        'Theme' => Idwakhalweb\Theme\Facades\Theme::class,
        // 'Theme' => 'Facuz\Theme\Facades\Theme', // New theme facade - will be enabled after package installation
        'Menu' => 'Idwakhalweb\Menu\Facades\Menu',
        'Image' => 'Idwakhalweb\Image\Facade\Image',
        'Hook' => 'Idwakhalweb\Hook\HookFacade',
        // 'Recaptcha' => 'Greggilbert\Recaptcha\Facades\Recaptcha',

        'Addon' => 'App\Facades\Addon',
        'ThemeManager' => 'App\Facades\ThemeManager',
		'Gate' => 'Illuminate\Support\Facades\Gate',
    ],

    'cipher' => 'AES-256-CBC',

    /*
    |--------------------------------------------------------------------------
    | External Service URLs (Optional Configuration)
    |--------------------------------------------------------------------------
    |
    | Configure these URLs if you need to integrate with external services.
    | Uncomment and update the URLs as needed.
    |
    */
    
    // 'tvWakhalUrl' => 'https://wakhal.tv',
    // 'quizWakhalUrl' => 'https://quiz.wakhal.com',
    // 'eventcalendarUrl' => 'https://cevents.community4e.com',

];
