承接 bestmomo/filemanager 相关项目开发

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

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

bestmomo/filemanager

最新稳定版本:V1.03

Composer 安装命令:

composer require bestmomo/filemanager

包简介

To add filemanager to Laravel 5.1

README 文档

README

This package is to add simogeo/Filemanager to Laravel 5.2 installation.

Installation

Add Filemanager to your composer.json file to require Filemanager :

    require : {
        "laravel/framework": "5.2.*",
        "bestmomo/filemanager": "1.1.*"
    }

Update Composer :

    composer update

The next required step is to add the service provider to config/app.php :

    Bestmomo\Filemanager\FilemanagerServiceProvider::class,

Publish

The last required step is to publish assets in your application with :

    php artisan vendor:publish --provider="Bestmomo\Filemanager\FilemanagerServiceProvider"

User model

For Filemanager php connector you must create at least this function in user model :

public function accessMediasAll()
{
    // return true for access to all medias
}

If you want some users access only to one folder add this function :

public function accessMediasFolder()
{
    // return true for access to one folder
}

A folder with user{id} name will be created in filemanager/userfiles folder.

Integration

You can now integrate Filemanager with any editor.

Simple example integration with CKEditor :

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>CKEditor</title>
        <script src="//cdn.ckeditor.com/4.5.3/standard/ckeditor.js"></script>
    </head>
    <body>
        <textarea name="editor"></textarea>
        <script>
            CKEDITOR.replace( 'editor', {
                filebrowserBrowseUrl: '{!! url('filemanager/index.html') !!}'
            });
        </script>
    </body>
</html>

统计信息

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

GitHub 信息

  • Stars: 44
  • Watchers: 5
  • Forks: 11
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-24