<?php

return [
    'class_namespace' => 'App\\Livewire',

    'view_path' => resource_path('views/livewire'),

    'layout' => 'components.layouts.app',

    'lazy_placeholder' => null,

    'temporary_file_upload' => [
        // Keep temporary uploads on local disk with a non-empty folder to avoid upload path issues.
        'disk' => env('LIVEWIRE_UPLOAD_DISK') ?: 'local',
        'rules' => 'file|max:524288', // 512MB
        'directory' => env('LIVEWIRE_UPLOAD_DIR') ?: 'livewire-tmp',
        'middleware' => null,
        'preview_mimes' => [
            'png', 'gif', 'bmp', 'svg', 'wav', 'mp4',
            'mov', 'avi', 'wmv', 'mp3', 'm4a', 'jp2',
            'jpg', 'jpeg', 'mpga', 'webp', 'wma', 'avif',
            'flv', 'mkv', 'webm', 'mpg', 'mpeg', '3gp',
            'pdf', 'doc', 'docx',
        ],
        'max_upload_time' => 60,
        'cleanup' => true,
    ],

    'render_on_redirect' => false,

    'legacy_model_binding' => false,

    'inject_assets' => true,

    'navigate' => [
        'show_progress_bar' => true,
        'progress_bar_color' => '#2299dd',
    ],

    'inject_morph_markers' => true,

    'pagination_theme' => 'tailwind',
];
