https://github.com/uidb-dev/laravel-filemanager
https://github.com/uidb-dev/laravel-filemanager
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/uidb-dev/laravel-filemanager
- Owner: uidb-dev
- Created: 2022-09-19T09:21:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-06T12:21:12.000Z (over 1 year ago)
- Last Synced: 2025-02-15T05:46:04.595Z (over 1 year ago)
- Language: Blade
- Size: 770 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel 5 FileManager - Upgrade to Laravel 9
========
## Installation
### Laravel >= 5.5:
Require this package with composer:
```php
composer require uidb-dev/laravel-filemanager
```
That's it :)
### Configuration:
Register package's routes in the routes service provider file:
```php
FileManager::routes();
```
Publish the config file using:
```php
php artisan vendor:publish --tag="file-manager-config"
```
Include the tightenco/ziggy js routes putting the routes generator on your layout file (in the `````` tag):
```php
@routes
```
For including the package assets add the next lines to your layout template:
```php
// Inside the tag
// And
@include('FileManager::partials.styles')
// Before closing the tag
$(function () {
FileManagerModal.init();
});
@include('FileManager::partials.scripts')
@include('FileManager::partials.file-manager-modal')
```
Add the crop validation translation to your validation.php translation file:
```php
'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.