yaroslawww/nova-laravel-filemanager

This package is abandoned and no longer maintained. The author suggests using the think.studio/nova-laravel-filemanager package instead.

Simple package adds the ability to select an image from UniSharp/laravel-filemanager

2.2.0 2023-08-28 13:35 UTC

This package is auto-updated.

Last update: 2023-08-28 13:53:31 UTC


README

Packagist License Packagist Version Total Downloads Build Status Code Coverage Scrutinizer Code Quality

Simple package adds the ability to select an image from UniSharp/laravel-filemanager

Nova Package
V1-3 V1
V4 V2

Usage Field

NLFMImage::make( 'Image', 'image' );
NLFMImage::make( 'Image', 'image' )
    ->filemanagerPath('/custom-link/files');

You can specify filemanagerPath in the main laravel-filemanager config file by adding the filemanager_path key

'filemanager_path' => '/custom-link/files'

filemanager-1.png filemanager-2.png filemanager-3.png filemanager-4.png

Usage Tool

 \ThinkOne\NovaLaravelFilemanager\NLFileManager::make(),
 // or
 \ThinkOne\NovaLaravelFilemanager\NLFileManager::make()
                ->lfmUrl(url(config('lfm.filemanager_path')))
                ->onlyImages()
                ->onlyFiles()
                ->title('Browse files')
                ->icon('document-search')
                ->hideMenu(),

filemanager-tool-1.png filemanager-tool-2.png

Installation

You can install the package via composer:

composer require think.studio/nova-laravel-filemanager

Please check guide https://unisharp.github.io/laravel-filemanager/installation

Routes

Route::group([
    'prefix'     => config('lfm.filemanager_path'),
    'middleware' => [ 'web', 'auth' ],
], function () {
    \UniSharp\LaravelFilemanager\Lfm::routes();
});

Credits

  • Think Studio