uidb-dev/laravel-filemanager

There is no license information available for the latest version (dev-main) of this package.

dev-main 2023-03-20 10:13 UTC

This package is not auto-updated.

Last update: 2024-05-14 15:25:31 UTC


README

========

Installation

Laravel >= 5.5:

Require this package with composer:

composer require uidb-dev/laravel-filemanager

That's it :)

Configuration:

Register package's routes in the routes service provider file:

FileManager::routes();

Publish the config file using:

php artisan vendor:publish --tag="file-manager-config"

Include the tightenco/ziggy js routes putting the routes generator on your layout file (in the <head> tag):

@routes

For including the package assets add the next lines to your layout template:

// Inside the <head> tag
<meta name="csrf-token" content="{{ csrf_token() }}">
// And
@include('FileManager::partials.styles')

// Before closing the <body> tag
<script>
    $(function () {
        FileManagerModal.init();
    });
</script>
@include('FileManager::partials.scripts')
@include('FileManager::partials.file-manager-modal')

Add the crop validation translation to your validation.php translation file:

'is_croppable' => 'The :attribute is not croppable according to all sizes.',

Prepare a minimalist layout for popup state, then add it to the file-manager.php config file.

  • Make sure you choose a disk on the package configuration file - Files will be stored on that disk.