home-erp

git clone git://archive.git.mtrnord.blog/MTRNord/home-erp.git
Log | Files | Refs | README

livewire.php (6197B)


      1 <?php
      2 
      3 return [
      4 
      5     /*
      6     |---------------------------------------------------------------------------
      7     | Class Namespace
      8     |---------------------------------------------------------------------------
      9     |
     10     | This value sets the root class namespace for Livewire component classes in
     11     | your application. This value will change where component auto-discovery
     12     | finds components. It's also referenced by the file creation commands.
     13     |
     14     */
     15 
     16     'class_namespace' => 'App\\Livewire',
     17 
     18     /*
     19     |---------------------------------------------------------------------------
     20     | View Path
     21     |---------------------------------------------------------------------------
     22     |
     23     | This value is used to specify where Livewire component Blade templates are
     24     | stored when running file creation commands like `artisan make:livewire`.
     25     | It is also used if you choose to omit a component's render() method.
     26     |
     27     */
     28 
     29     'view_path' => resource_path('views/livewire'),
     30 
     31     /*
     32     |---------------------------------------------------------------------------
     33     | Layout
     34     |---------------------------------------------------------------------------
     35     | The view that will be used as the layout when rendering a single component
     36     | as an entire page via `Route::get('/post/create', CreatePost::class);`.
     37     | In this case, the view returned by CreatePost will render into $slot.
     38     |
     39     */
     40 
     41     'layout' => 'components.layouts.app',
     42 
     43     /*
     44     |---------------------------------------------------------------------------
     45     | Lazy Loading Placeholder
     46     |---------------------------------------------------------------------------
     47     | Livewire allows you to lazy load components that would otherwise slow down
     48     | the initial page load. Every component can have a custom placeholder or
     49     | you can define the default placeholder view for all components below.
     50     |
     51     */
     52 
     53     'lazy_placeholder' => null,
     54 
     55     /*
     56     |---------------------------------------------------------------------------
     57     | Temporary File Uploads
     58     |---------------------------------------------------------------------------
     59     |
     60     | Livewire handles file uploads by storing uploads in a temporary directory
     61     | before the file is stored permanently. All file uploads are directed to
     62     | a global endpoint for temporary storage. You may configure this below:
     63     |
     64     */
     65 
     66     'temporary_file_upload' => [
     67         'disk' => null,        // Example: 'local', 's3'              | Default: 'default'
     68         'rules' => null,       // Example: ['file', 'mimes:png,jpg']  | Default: ['required', 'file', 'max:12288'] (12MB)
     69         'directory' => null,   // Example: 'tmp'                      | Default: 'livewire-tmp'
     70         'middleware' => null,  // Example: 'throttle:5,1'             | Default: 'throttle:60,1'
     71         'preview_mimes' => [   // Supported file types for temporary pre-signed file URLs...
     72             'png', 'gif', 'bmp', 'svg', 'wav', 'mp4',
     73             'mov', 'avi', 'wmv', 'mp3', 'm4a',
     74             'jpg', 'jpeg', 'mpga', 'webp', 'wma',
     75         ],
     76         'max_upload_time' => 5, // Max duration (in minutes) before an upload is invalidated...
     77     ],
     78 
     79     /*
     80     |---------------------------------------------------------------------------
     81     | Render On Redirect
     82     |---------------------------------------------------------------------------
     83     |
     84     | This value determines if Livewire will run a component's `render()` method
     85     | after a redirect has been triggered using something like `redirect(...)`
     86     | Setting this to true will render the view once more before redirecting
     87     |
     88     */
     89 
     90     'render_on_redirect' => false,
     91 
     92     /*
     93     |---------------------------------------------------------------------------
     94     | Eloquent Model Binding
     95     |---------------------------------------------------------------------------
     96     |
     97     | Previous versions of Livewire supported binding directly to eloquent model
     98     | properties using wire:model by default. However, this behavior has been
     99     | deemed too "magical" and has therefore been put under a feature flag.
    100     |
    101     */
    102 
    103     'legacy_model_binding' => false,
    104 
    105     /*
    106     |---------------------------------------------------------------------------
    107     | Auto-inject Frontend Assets
    108     |---------------------------------------------------------------------------
    109     |
    110     | By default, Livewire automatically injects its JavaScript and CSS into the
    111     | <head> and <body> of pages containing Livewire components. By disabling
    112     | this behavior, you need to use @livewireStyles and @livewireScripts.
    113     |
    114     */
    115 
    116     'inject_assets' => true,
    117 
    118     /*
    119     |---------------------------------------------------------------------------
    120     | Navigate (SPA mode)
    121     |---------------------------------------------------------------------------
    122     |
    123     | By adding `wire:navigate` to links in your Livewire application, Livewire
    124     | will prevent the default link handling and instead request those pages
    125     | via AJAX, creating an SPA-like effect. Configure this behavior here.
    126     |
    127     */
    128 
    129     'navigate' => [
    130         'show_progress_bar' => true,
    131         'progress_bar_color' => '#2299dd',
    132     ],
    133 
    134     /*
    135     |---------------------------------------------------------------------------
    136     | HTML Morph Markers
    137     |---------------------------------------------------------------------------
    138     |
    139     | Livewire intelligently "morphs" existing HTML into the newly rendered HTML
    140     | after each update. To make this process more reliable, Livewire injects
    141     | "markers" into the rendered Blade surrounding @if, @class & @foreach.
    142     |
    143     */
    144 
    145     'inject_morph_markers' => true,
    146 
    147     /*
    148     |---------------------------------------------------------------------------
    149     | Pagination Theme
    150     |---------------------------------------------------------------------------
    151     |
    152     | When enabling Livewire's pagination feature by using the `WithPagination`
    153     | trait, Livewire will use Tailwind templates to render pagination views
    154     | on the page. If you want Bootstrap CSS, you can specify: "bootstrap"
    155     |
    156     */
    157 
    158     'pagination_theme' => 'tailwind',
    159 ];