Filesystem settings for Laravel and Livewire.
composer require nuewire/filesystem
php artisan optimize:clear
<livewire:nuewire-filesystem />
With nuewire/platform 2, the page appears under Settings → Configuration → Storage at /admin/settings/storage.
Settings are encrypted at:
storage/app/private/.nuewire/filesystem.json
Available disks:
nuewire
nuewire-local
nuewire-s3
nuewire-bunnycdn
nuewire always points to the active provider.
Storage::disk('nuewire')->put('files/example.txt', $contents);
The selected disk can become Laravel's default. Calls with an explicit disk such as Storage::disk('public') are not changed.
Set a relative directory such as:
my-app/media
A write to avatars/user.jpg is stored below my-app/media/avatars/user.jpg.
php artisan storage:link
The component requires authentication by default.
NUEWIRE_FILESYSTEM_GATE=manage-filesystem-settings
php artisan vendor:publish --tag=nuewire-filesystem-config
php artisan vendor:publish --tag=nuewire-filesystem-views
php artisan vendor:publish --tag=nuewire-filesystem-translations
Config path:
config/nuewire/filesystem.php
Restart queue or Octane workers after changing providers.
How can I help you explore Laravel packages today?