2017 © Pedro Peláez
 

library filemanager-laravel

Filemanager for Laravel

image

pqb/filemanager-laravel

Filemanager for Laravel

  • Wednesday, November 8, 2017
  • by guillermomartinez
  • Repository
  • 12 Watchers
  • 85 Stars
  • 11,236 Installations
  • JavaScript
  • 3 Dependents
  • 0 Suggesters
  • 46 Forks
  • 5 Open issues
  • 20 Versions
  • 4 % Grown

The README.md

Filemanager para Laravel 5

Basado de https://github.com/simogeo/Filemanager, (*1)

Importante

Este paquete solo se dará soporte por temas de seguridad., (*2)

Se recomienda usar este paquete https://github.com/guillermomartinez/filemanager-ui, (*3)

Demo

http://laravel-filemanager.rhcloud.com/
http://laravel-filemanager.rhcloud.com/filemanager/show, (*4)

Requiere

"intervention/image": "2.*", (*5)

Instalación

Edita tu composer.json., (*6)

"require": {
    "pqb/filemanager-laravel": "2.*"
}

Ejecuta, (*7)

composer update

Agrega en tu archivo app.php, (*8)

'Pqb\FilemanagerLaravel\FilemanagerLaravelServiceProvider',

Y en el Facade, (*9)

'FilemanagerLaravel'=> 'Pqb\FilemanagerLaravel\Facades\FilemanagerLaravel',

Copia el Controller, View a la carpeta resources/views/vendor/filemanager-laravel, la carpeta filemanager y tinymce a tu carpeta public, con el siguiente comando:, (*10)

php artisan vendor:publish

Al final Agrega en routes.php, (*11)

Route::group(['prefix' => 'filemanager','middleware' => 'auth'], function() {    
    Route::get('show', 'FilemanagerLaravelController@getShow');
    Route::get('connectors', 'FilemanagerLaravelController@getConnectors');
    Route::post('connectors', 'FilemanagerLaravelController@postConnectors');
});

Para que carge tinymce con el plugin filemanager agrega:, (*12)

<script type="text/javascript" src="{{ url('') }}/tinymce/tinymce.min.js"></script>
<script type="text/javascript" src="{{ url('') }}/tinymce/tinymce_editor.js"></script>
<script type="text/javascript">
editor_config.selector = "textarea";
editor_config.path_absolute = "http://laravel-filemanager.rhcloud.com/";
tinymce.init(editor_config);
</script>

Si deseas poner en una sub carpeta

Ejemplo http://localhost/admin/filemanager/, (*13)

Modifica tu routes.php, (*14)

Route::group(array('middleware' => 'auth'), function(){    
    Route::get('admin/filemanager/show', 'FilemanagerLaravelController@getShow');
    Route::get('admin/filemanager/connectors', 'FilemanagerLaravelController@getConnectors');
    Route::post('admin/filemanager/connectors', 'FilemanagerLaravelController@postConnectors');
});

Modifica tu controller, (*15)

// app/Http/Controllers/FilemanagerLaravelController.php
public function getConnectors()
    {
        $extraConfig = array('dir_filemanager'=>'/admin');
        $f = FilemanagerLaravel::Filemanager($extraConfig);
        $f->connector_url = url('/').'/admin/filemanager/connectors';
        $f->run();
    }
    public function postConnectors()
    {
        $extraConfig = array('dir_filemanager'=>'/admin');
        $f = FilemanagerLaravel::Filemanager($extraConfig);
        $f->connector_url = url('/').'/admin/filemanager/connectors';
        $f->run();
    }

Modifica todos los enlaces agregando el nombre de tu carpeta, (*16)

// resources/views/vendor/filemanager-laravel/filemanager/index.blade.php
<link rel="stylesheet" type="text/css" href="{{ url('') }}/admin/filemanager/styles/filemanager.css" />

Cambia la url absoluta:, (*17)

<script type="text/javascript">
editor_config.selector = "textarea";
editor_config.path_absolute = "http://laravel-filemanager.rhcloud.com/admin/";
tinymce.init(editor_config);
</script>

Filemanager para Laravel 4

Basado de https://github.com/simogeo/Filemanager, (*18)

Requiere

"intervention/image": "2.*", (*19)

Instalación

Edita tu composer.json., (*20)

"require": {
    "pqb/filemanager-laravel": "1.*"
}

Ejecuta, (*21)

composer update

Agrega en tu archivo app.php, (*22)

'Pqb\FilemanagerLaravel\FilemanagerLaravelServiceProvider',

Y en el Facade, (*23)

'FilemanagerLaravel'=> 'Pqb\FilemanagerLaravel\Facades\FilemanagerLaravel',

Agrega en routes.php, (*24)

Route::group(array('before' => 'auth'), function(){
    Route::controller('filemanager', 'FilemanagerLaravelController');
});

Copia las carpetas filemanager y tinymce a tu carpeta public, (*25)

php artisan asset:publish --path="vendor/pqb/filemanager-laravel/public" "../"

Para que carge tinymce con el plugin filemanager agrega:, (*26)

<script type="text/javascript" src="{{ url('') }}/tinymce/tinymce.min.js"></script>
<script type="text/javascript" src="{{ url('') }}/tinymce/tinymce_editor.js"></script>
<script type="text/javascript">
editor_config.selector = "textarea";
tinymce.init(editor_config);
</script>

Cambiar la url absoluta en:, (*27)

//tinymce/tinymce_editor.js
var cmsURL = 'http://localhost/filemanager/show?&field_name='+field_name+'&lang='+tinymce.settings.language;

Demo

http://www.youtube.com/watch?v=yowJRKZ3Ums, (*28)

The Versions

08/11 2017

dev-master

9999999-dev

Filemanager for Laravel

  Sources   Download

MIT

The Requires

 

by Guillermo M.

08/11 2017

2.0.12

2.0.12.0

Filemanager for Laravel

  Sources   Download

MIT

The Requires

 

by Guillermo M.

28/01 2017

2.0.11

2.0.11.0

Filemanager for Laravel

  Sources   Download

MIT

The Requires

 

by Guillermo M.

28/01 2017

dev-dev

dev-dev

Filemanager for Laravel

  Sources   Download

MIT

The Requires

 

by Guillermo M.

28/01 2017

2.0.10

2.0.10.0

Filemanager for Laravel

  Sources   Download

MIT

The Requires

 

by Guillermo M.

27/10 2016

2.0.9

2.0.9.0

Filemanager for Laravel

  Sources   Download

MIT

The Requires

 

by Guillermo M.

27/10 2016

2.0.8

2.0.8.0

Filemanager for Laravel

  Sources   Download

MIT

The Requires

 

by Guillermo M.

01/04 2016

2.0.7

2.0.7.0

Filemanager for Laravel

  Sources   Download

MIT

The Requires

 

by Guillermo M.

28/07 2015

2.0.6

2.0.6.0

Filemanager for Laravel

  Sources   Download

MIT

The Requires

 

by Guillermo M.

06/07 2015

2.0.5

2.0.5.0

Filemanager for Laravel

  Sources   Download

MIT

The Requires

 

by Guillermo M.

05/07 2015

2.0.4

2.0.4.0

Filemanager for Laravel

  Sources   Download

MIT

The Requires

 

by Guillermo M.

03/07 2015

2.0.3

2.0.3.0

Filemanager for Laravel

  Sources   Download

MIT

The Requires

 

by Guillermo M.

03/07 2015

2.0.2

2.0.2.0

Filemanager for Laravel

  Sources   Download

MIT

The Requires

 

by Guillermo M.

16/05 2015

2.0.1

2.0.1.0

Filemanager for Laravel

  Sources   Download

MIT

The Requires

 

by Guillermo M.

11/02 2015

dev-development

dev-development

Filemanager for Laravel 4

  Sources   Download

MIT

The Requires

 

by Guillermo M.

11/02 2015

2.0

2.0.0.0

Filemanager for Laravel 4

  Sources   Download

MIT

The Requires

 

by Guillermo M.

30/08 2014

1.0.8

1.0.8.0

Filemanager for Laravel 4

  Sources   Download

MIT

The Requires

 

by Guillermo M.

04/08 2014

1.0.7

1.0.7.0

Filemanager for Laravel 4

  Sources   Download

MIT

The Requires

 

by Guillermo M.

04/08 2014

1.0.6

1.0.6.0

Filemanager for Laravel 4

  Sources   Download

MIT

The Requires

 

by Guillermo M.

03/08 2014

1.0

1.0.0.0

Filemanager for Laravel 4

  Sources   Download

MIT

The Requires

 

by Guillermo M.