mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-15 09:14:08 +00:00
The public disk was accidentally removed during the Laravel 11 upgrade and re-added as local_public in the FileDisk refactor. Restoring the standard Laravel name avoids breaking Spatie MediaLibrary expectations and simplifies the v2-to-v3 upgrade path. User avatars and company logos now explicitly use the public disk via registerMediaCollections(), keeping them web-accessible while the default media disk remains private for sensitive documents like PDFs and receipts. The v3 upgrade migration renames the system disk entry and any alpha media records from local_public back to public.
105 lines
3.1 KiB
PHP
105 lines
3.1 KiB
PHP
<?php
|
|
|
|
return [
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Default Filesystem Disk
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here you may specify the default filesystem disk that should be used
|
|
| by the framework. The "local" disk, as well as a variety of cloud
|
|
| based disks are available to your application for file storage.
|
|
|
|
|
*/
|
|
|
|
'default' => env('FILESYSTEM_DISK', 'local'),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Filesystem Disks
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Below you may configure as many filesystem disks as necessary, and you
|
|
| may even configure multiple disks for the same driver. Examples for
|
|
| most supported storage drivers are configured here for reference.
|
|
|
|
|
| Supported drivers: "local", "ftp", "sftp", "s3"
|
|
|
|
|
*/
|
|
|
|
'disks' => [
|
|
|
|
'local' => [
|
|
'driver' => 'local',
|
|
'root' => storage_path('app'),
|
|
'throw' => false,
|
|
'report' => false,
|
|
],
|
|
|
|
'public' => [
|
|
'driver' => 'local',
|
|
'root' => storage_path('app/public'),
|
|
'url' => env('APP_URL').'/storage',
|
|
'visibility' => 'public',
|
|
],
|
|
|
|
's3' => [
|
|
'driver' => 's3',
|
|
'key' => env('AWS_KEY'),
|
|
'secret' => env('AWS_SECRET'),
|
|
'region' => env('AWS_REGION'),
|
|
'bucket' => env('AWS_BUCKET'),
|
|
'root' => env('AWS_ROOT'),
|
|
],
|
|
|
|
's3compat' => [
|
|
'driver' => 's3',
|
|
'endpoint' => env('S3_COMPAT_ENDPOINT'),
|
|
'use_path_style_endpoint' => true,
|
|
'key' => env('S3_COMPAT_KEY'),
|
|
'secret' => env('S3_COMPAT_SECRET'),
|
|
'region' => env('S3_COMPAT_REGION'),
|
|
'bucket' => env('S3_COMPAT_BUCKET'),
|
|
],
|
|
|
|
'doSpaces' => [
|
|
'type' => 'AwsS3',
|
|
'driver' => 's3',
|
|
'key' => env('DO_SPACES_KEY'),
|
|
'secret' => env('DO_SPACES_SECRET'),
|
|
'region' => env('DO_SPACES_REGION'),
|
|
'bucket' => env('DO_SPACES_BUCKET'),
|
|
'root' => env('DO_SPACES_ROOT'),
|
|
'endpoint' => env('DO_SPACES_ENDPOINT'),
|
|
'use_path_style_endpoint' => false,
|
|
],
|
|
|
|
'dropbox' => [
|
|
'driver' => 'dropbox',
|
|
'type' => 'DropboxV2',
|
|
'token' => env('DROPBOX_TOKEN'),
|
|
'key' => env('DROPBOX_KEY'),
|
|
'secret' => env('DROPBOX_SECRET'),
|
|
'app' => env('DROPBOX_APP'),
|
|
'root' => env('DROPBOX_ROOT'),
|
|
],
|
|
|
|
'media' => [
|
|
'driver' => 'local',
|
|
'root' => public_path('media'),
|
|
],
|
|
|
|
'views' => [
|
|
'driver' => 'local',
|
|
'root' => resource_path('views'),
|
|
],
|
|
|
|
'pdf_templates' => [
|
|
'driver' => 'local',
|
|
'root' => storage_path('app/templates/pdf'),
|
|
],
|
|
],
|
|
|
|
];
|