Version 1.0.0 includes a breaking change that fixes a naming inconsistency throughout the package. The package name changes from livewire-fileuploader to livewire-filemanager for all published assets and configurations.
This guide will help you migrate your application from v0.x to v1.0.0.
In previous versions, the package used inconsistent naming:
- Publishing tags, config files, and directories used
livewire-fileuploader - Components, views, and translations used
livewire-filemanager
Version 1.0.0 unifies all naming to livewire-filemanager.
Run the automatic migration command that handles all the file renaming for you:
php artisan filemanager:migrate-configThis command will:
- Rename
config/livewire-fileuploader.php→config/livewire-filemanager.php - Move
resources/views/vendor/livewire-fileuploader/→resources/views/vendor/livewire-filemanager/ - Move
resources/lang/vendor/livewire-fileuploader/→resources/lang/vendor/livewire-filemanager/
The command will show you a summary of all changes made.
If you prefer to migrate manually, follow these steps:
mv config/livewire-fileuploader.php config/livewire-filemanager.phpIf you've customized views:
mv resources/views/vendor/livewire-fileuploader resources/views/vendor/livewire-filemanagerIf you've customized translations:
mv resources/lang/vendor/livewire-fileuploader resources/lang/vendor/livewire-filemanagerIf you're re-publishing assets, update your scripts to use the new tags:
Old:
php artisan vendor:publish --tag=livewire-fileuploader-config
php artisan vendor:publish --tag=livewire-fileuploader-views
php artisan vendor:publish --tag=livewire-fileuploader-migrationsNew:
php artisan vendor:publish --tag=livewire-filemanager-config
php artisan vendor:publish --tag=livewire-filemanager-views
php artisan vendor:publish --tag=livewire-filemanager-migrationsThe package configuration method remains the same, but the file location has changed:
Old path:
config('livewire-fileuploader.acl_enabled')New path:
config('livewire-filemanager.acl_enabled')The internal code has been updated to use the new path automatically. If you have direct references to the configuration in your application code, update them accordingly.
No changes needed for component usage:
<x-livewire-filemanager />
<x-livewire-filemanager-modal />These remain unchanged.
No changes needed for directives:
@filemanagerStyles
@filemanagerScriptsThese remain unchanged.
After upgrading, test the following:
- Configuration: Verify the config file exists at the new location
- Views: If you've customized views, ensure they're loading correctly
- Translations: If you've customized translations, verify they're being loaded
- API: If using the API, verify it's working correctly
- ACL: If you've enabled ACL, verify permissions work as expected
Run your test suite to ensure everything still works:
composer testMake sure you've updated to the latest version:
composer update livewire-filemanager/filemanagerIf you get errors about a missing config file:
- Run the automatic migration command:
php artisan filemanager:migrate-config - Or manually move the file:
mv config/livewire-fileuploader.php config/livewire-filemanager.php - Clear config cache:
php artisan config:clear
If your custom views aren't loading:
- Check that views are in the new directory:
resources/views/vendor/livewire-filemanager/ - Clear view cache:
php artisan view:clear
If your custom translations aren't loading:
- Check that translations are in the new directory:
resources/lang/vendor/livewire-filemanager/ - Clear application cache:
php artisan cache:clear
If you encounter any issues during the upgrade process, please:
- Check this guide again
- Review the full documentation
- Open an issue on GitHub
- Config file location:
config/livewire-fileuploader.php→config/livewire-filemanager.php - Published views:
resources/views/vendor/livewire-fileuploader/→resources/views/vendor/livewire-filemanager/ - Published translations:
resources/lang/vendor/livewire-fileuploader/→resources/lang/vendor/livewire-filemanager/ - Publishing tags: All
livewire-fileuploader-*tags →livewire-filemanager-*tags - Internal code: All config references updated from
livewire-fileuploader.*tolivewire-filemanager.*
- Component usage:
<x-livewire-filemanager />(unchanged) - Blade directives:
@filemanagerStyles,@filemanagerScripts(unchanged) - Livewire components: All naming remains the same
- API endpoints: All endpoints remain unchanged