承接 crowles/laravel-filebrowser 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

crowles/laravel-filebrowser

最新稳定版本:v0.1.5

Composer 安装命令:

composer require crowles/laravel-filebrowser

包简介

A lightweight filebrowser for Laravel applications.

README 文档

README

This package provides a lightweight file explorer that can be easily customised and integrated into your laravel applications.

Requirements

  • Laravel ^5+
  • jQuery ^3.4.1+
  • Bootstrap ^4.4.1+

Installation

Install with Composer:

composer require crowles/laravel-filebrowser

Getting Started

First you'll need to add the Service Provider to your config/app.php:

Crowles\FileBrowser\FileBrowserServiceProvider::class,

Publishing Assets

Then publish the vendor assets:

Views:

php artisan vendor:publish --provider="Crowles\FileBrowser\FileBrowserServiceProvider" --tag views

Assets:

php artisan vendor:publish --provider="Crowles\FileBrowser\FileBrowserServiceProvider" --tag assets

Config:

php artisan vendor:publish --provider="Crowles\FileBrowser\FileBrowserServiceProvider" --tag config

Configuration

You'll now need to add the path to the root directory you want the file browser to access, do this by changing the following environment variables loaded in config/filebrowser.php:

    /*
    |--------------------------------------------------------------------------
    | Path
    |--------------------------------------------------------------------------
    |
    | The path to scan for files and folders.
    |
    | You must use an absolute path.
    |
    */
    'path' => env('FILEBROWSER_PATH', ''),

    /*
    |--------------------------------------------------------------------------
    | Root
    |--------------------------------------------------------------------------
    |
    | The root diectory where you want to initialise the file browser
    |
    */
    'root' => env('FILEBROWSER_ROOT', ''),

Default Routes

The following routes are configured by default with prefix filebrowser/:

$router->get('/', '\Crowles\FileBrowser\FileBrowserController@index');
$router->get('/scan', '\Crowles\FileBrowser\FileBrowserController@scan');

License

Laravel File Browser is open-sourced software licensed under the MIT license.

统计信息

  • 总下载量: 1.89k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: CSS

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-12