think.studio/nova-laravel-filemanager

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: 2024-10-28 16:07:03 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

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