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
Requires
- php: ^8.1
- illuminate/support: ^9.0|^10.0
- laravel/nova: ^4.0
- unisharp/laravel-filemanager: ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.16
- orchestra/testbench: ^8.3
- phpunit/phpunit: ^10.0
- psalm/plugin-laravel: ^2.8
- vimeo/psalm: ^5.9
README
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'
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(),
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();
});