2025-11-29 17:27:40 +09:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Livewire Assets URL
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| This value sets the path to Livewire JavaScript assets, for cases where
|
|
|
|
|
| your app's domain root is not the correct path. By default, Livewire
|
|
|
|
|
| will load its JavaScript assets from the app's "relative root".
|
|
|
|
|
|
|
|
|
|
|
| Examples: "/assets", "myurl.com/app".
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2025-11-29 17:48:12 +09:00
|
|
|
'asset_url' => null,
|
2025-11-29 17:27:40 +09:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Livewire App URL
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| This value should be used if livewire assets are served from CDN.
|
|
|
|
|
| Livewire will communicate with an app through this url.
|
|
|
|
|
|
|
|
|
|
|
| Examples: "https://my-app.com", "myurl.com/app".
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
'app_url' => env('APP_URL'),
|
|
|
|
|
|
2025-11-29 17:53:18 +09:00
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Livewire Update Endpoint
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| The endpoint for Livewire AJAX requests.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
'update_endpoint' => '/livewire/update',
|
|
|
|
|
|
2025-11-29 17:27:40 +09:00
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Livewire Endpoint Middleware Group
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| This value sets the middleware group that will be applied to the main
|
|
|
|
|
| Livewire "message" endpoint (the endpoint that gets hit everytime
|
|
|
|
|
| a Livewire component updates). It is set to "web" by default.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
'middleware_group' => 'web',
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Livewire Temporary File Uploads Endpoint Configuration
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| Livewire handles file uploads by storing uploads in a temporary directory
|
|
|
|
|
| before the file is stored permanently. All file uploads are directed
|
|
|
|
|
| to a global endpoint for temporary storage. Here you may configure.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
'temporary_file_upload' => [
|
|
|
|
|
'disk' => null,
|
|
|
|
|
'rules' => null,
|
|
|
|
|
'directory' => null,
|
|
|
|
|
'middleware' => null,
|
|
|
|
|
'preview_mimes' => [
|
|
|
|
|
'png', 'gif', 'bmp', 'svg', 'wav', 'mp4',
|
|
|
|
|
'mov', 'avi', 'wmv', 'mp3', 'm4a',
|
|
|
|
|
'jpg', 'jpeg', 'mpga', 'webp', 'wma',
|
|
|
|
|
],
|
|
|
|
|
'max_upload_time' => 5,
|
|
|
|
|
'cleanup' => true,
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Render On Redirect
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| This value determines if Livewire will render before it's redirected
|
|
|
|
|
| or not. Setting it to "false" will mean the render method is skipped
|
|
|
|
|
| when performing a redirect, potentially improving performances.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
'render_on_redirect' => false,
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Navigate (SPA mode)
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| By default, Livewire uses the "replace" strategy for SPA navigation
|
|
|
|
|
| which can sometimes cause issues with subdirectory deployments.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
'navigate' => [
|
|
|
|
|
'show_progress_bar' => true,
|
|
|
|
|
'progress_bar_color' => '#2299dd',
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Inject Assets
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| By default, Livewire automatically injects its JavaScript and styles
|
|
|
|
|
| into the <head> and <body> of your pages. If you want to disable
|
|
|
|
|
| this behavior and manually include assets, set this to false.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
'inject_assets' => true,
|
|
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|