PHP code example of proside / file-manager
1. Go to this page and download the library: Download proside/file-manager library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
proside / file-manager example snippets
$schedule->command('file-manager:prune-trash')->daily();
// config/file-manager.php
'root_resolver' => \App\FileManager\LevelRootResolver::class, // invocável: __invoke(): null|string|array
bash
php artisan storage:link
bash
php artisan vendor:publish --tag=file-manager-config # config/file-manager.php
php artisan vendor:publish --tag=file-manager-views # resources/views/vendor/file-manager
php artisan vendor:publish --tag=file-manager-lang # lang/vendor/file-manager
php artisan vendor:publish --tag=file-manager-assets # public/vendor/file-manager/file-manager.css
js
content: [
// ...
'./vendor/proside/file-manager/resources/views/**/*.blade.php',
],
blade
{{-- Um ficheiro --}}
<x-file-manager::picker input-name="gfqueue_image" :value="$queue->image ?? ''" />
{{-- Vários ficheiros --}}
<x-file-manager::picker input-name="imagens[]" :value="$existing" multiple />
{{-- Forçar apenas imagens (ou 'videos') --}}
<x-file-manager::picker input-name="icon" filter="images" />