dsideal2015 2017-03-04 16:47
浏览 75

如何在elfinder laravel中为谷歌驱动器启用安装网络磁盘

I have question of elfinder, how to enable 'Mount Network Disk' on elfinder for use google drive in laravel 5.2. Could tell you me, which are steps to follow.

The steps i followed were:

Installation with composer.

composer require barryvdh/laravel-elfinder

Add the ServiceProvider to the providers array in app/config/app.php

Barryvdh\Elfinder\ElfinderServiceProvider::class

Copy the assets to the public folder, using the following artisan command:

php artisan elfinder:publish

Run command.

composer update

I used the default configuration, I created the folder 'files' in the public folder. With the command

php artisan vendor:publish --provider='Barryvdh\Elfinder\ElfinderServiceProvider' --tag=config

and

php artisan vendor:publish --provider='Barryvdh\Elfinder\ElfinderServiceProvider' --tag=views

In the file elfinder.php with the route

'vendor/barryvdh/laravel-elfinder/config/elfinder.php'

In the section route use

'route' => [
    'prefix' => 'elfinder',
    'middleware' => null, //Set to null to disable middleware filter
     ]

In the file filesystems.php with the route

'/config/filesystems.php'.

In the section disk in the option public, add the line

'root' => base_path().'app/public',

after of the line

'driver' => 'local',

Example:

'disks' => [

    'local' => [
        'driver' => 'local',
        'root' => storage_path('app'),
    ],

    'public' => [
        'driver' => 'local',
        'root' => base_path().'app/public',
        'root' => storage_path('app/public'),
        'visibility' => 'public',
    ],

    's3' => [
        'driver' => 's3',
        'key' => 'your-key',
        'secret' => 'your-secret',
        'region' => 'your-region',
        'bucket' => 'your-bucket',
    ],

],

This is how i solved the error that occurs when you use the copy option, open folder, etc.

Error, Unable to connect to backend. HTTP error 0

But I do not know, what is needed to use the mount network disk.And how to give the folder(example: Reading)

This is link of the project https://github.com/AlonsoCauich/driveOne

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 关于#java#的问题:找一份能快速看完mooc视频的代码
    • ¥15 这种微信登录授权 谁可以做啊
    • ¥15 请问我该如何添加自己的数据去运行蚁群算法代码
    • ¥20 用HslCommunication 连接欧姆龙 plc有时会连接失败。报异常为“未知错误”
    • ¥15 网络设备配置与管理这个该怎么弄
    • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
    • ¥20 西门子S7-Graph,S7-300,梯形图
    • ¥50 用易语言http 访问不了网页
    • ¥50 safari浏览器fetch提交数据后数据丢失问题
    • ¥15 matlab不知道怎么改,求解答!!