Skip to content

Commit

Permalink
refactor(config): update log-viewer route prefix and livewire file u…
Browse files Browse the repository at this point in the history
…pload rules

Updated the log-viewer route prefix to 'mp_admin/log-viewer' for better namespace clarity and changed livewire temporary file upload rules to an empty array to allow more flexibility.
  • Loading branch information
frederic moras committed Dec 31, 2024
1 parent 126f049 commit ab10c9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/livewire.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

'temporary_file_upload' => [
'disk' => null, // Example: 'local', 's3' | Default: 'default'
'rules' => null, // Example: ['file', 'mimes:png,jpg'] | Default: ['required', 'file', 'max:12288'] (12MB)
'rules' => [], // Example: ['file', 'mimes:png,jpg'] | Default: ['required', 'file', 'max:12288'] (12MB)
'directory' => null, // Example: 'tmp' | Default: 'livewire-tmp'
'middleware' => null, // Example: 'throttle:5,1' | Default: 'throttle:60,1'
'preview_mimes' => [ // Supported file types for temporary pre-signed file URLs...
Expand Down
2 changes: 1 addition & 1 deletion config/log-viewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
'enabled' => true,

'attributes' => [
'prefix' => 'log-viewer',
'prefix' => 'mp_admin/log-viewer',

'middleware' => env('ARCANEDEV_LOGVIEWER_MIDDLEWARE') ? explode(',', env('ARCANEDEV_LOGVIEWER_MIDDLEWARE')) : null,
],
Expand Down

0 comments on commit ab10c9a

Please sign in to comment.