This package will help to have a livewire file manager
pavlovich4/livewire-filemanager is a Laravel package for this package will help to have a livewire file manager.
It currently has 4 GitHub stars and 11 downloads on Packagist (latest version v0.0.1).
Install it with composer require pavlovich4/livewire-filemanager.
Discover more Laravel packages by pavlovich4
or browse all Laravel packages to compare alternatives.
Last updated
A modern, responsive file manager for Laravel using Livewire and Alpine.js. Features include:
[!CAUTION] Please be sure to install, configure and run migrations of spatie/laravel-medialibrary package before continue. You can review the installation steps at spatie/laravel-medialibrary documentation.
composer require pavlovich4/livewire-filemanager
php artisan vendor:publish --tag="livewire-filemanager-migrations"
php artisan migrate
php artisan vendor:publish --tag="livewire-filemanager-config"
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="medialibrary-config"
Update config/media-library.php:
'custom_path_generators' => [
\Pavlovich4\LivewireFilemanager\Models\File::class => \Pavlovich4\LivewireFilemanager\Support\CustomPathGenerator::class,
// or
// 'model_morph_alias' => PathGenerator::class
],
php artisan storage:link
[!IMPORTANT] This package requires Tailwind CSS along with the @tailwindcss/aspect-ratio and @tailwindcss/forms plugins to be installed and configured in your project.
tailwind.config.js:module.exports = {
// ...
content: [
// ...
'./vendor/pavlovich4/livewire-filemanager/resources/views/**/*.blade.php',
],
// ...
plugins: [
// ...
require('@tailwindcss/forms'),
require('@tailwindcss/aspect-ratio'),
],
};
<livewire:file-manager />
{{-- Or --}}
@livewire('file-manager')
@livewireFileManagerStyle
@livewireFileManagerScript
data-trigger="filemanager" attribute:<!-- Basic trigger -->
<button data-trigger="filemanager">Open File Manager</button>
The package configuration file (config/livewire-filemanager.php) allows you to:
return [
// Storage disk to use (default: 'public')
'disk' => 'public',
// Media library configuration
'media' => [
'path_generator' => Pavlovich4\LivewireFilemanager\Support\CustomPathGenerator::class,
],
];

Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.