2017 © Pedro PelĂĄez
 

library richfilemanager

To add RichFilemanager to Laravel 5.*

image

cognitus/richfilemanager

To add RichFilemanager to Laravel 5.*

  • Monday, August 8, 2016
  • by cognitus
  • Repository
  • 1 Watchers
  • 1 Stars
  • 671 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 6 % Grown

The README.md

RichFilemanager

This package is to add servocoder/RichFilemanager to Laravel 5.* installation., (*1)

Installation

Add RichFilemanager to your composer.json file to require RichFilemanager :, (*2)

    "cognitus/richfilemanager": "1.0.*"

Update Composer :, (*3)

    composer update

The next required step is to add the service provider to config/app.php :, (*4)

    Cognitus\Richfilemanager\RichfilemanagerServiceProvider::class,

laravel 5.0:, (*5)

    'Cognitus\Richfilemanager\RichfilemanagerServiceProvider',

Publish

The last required step is to publish assets in your application with :, (*6)

    php artisan vendor:publish

User model

For RichFilemanager php connector you must create at least this function in user model :, (*7)

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

If you want some users access only to one folder add this function :, (*8)

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

A folder with user{id} name will be created in RichFilemanager/userfiles folder., (*9)

You can edit the name folders by usernames or whatever. just edit the file RichFilemanager/connectors/php/LaravelConfig.php and routes in config/RichFilemanager.php, (*10)

Example

show RichFilemanager, (*11)

public function index()
{
    $url = config('richfilemanager.url'). '?langCode=' . config('app.locale');

    return view('foo', compact('url'));

}

Integration

You can now integrate RichFilemanager with any editor., (*12)

Simple example integration with CKEditor :, (*13)

<!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('RichFilemanager/index.html') !!}'
            });
        </script>
    </body>
</html>

The Versions

08/08 2016

dev-master

9999999-dev https://github.com/cognitus/RichFilemanager/

To add RichFilemanager to Laravel 5.*

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

08/08 2016

v1.0

1.0.0.0 https://github.com/cognitus/RichFilemanager/

To add RichFilemanager to Laravel 5.*

  Sources   Download

MIT

The Requires

  • php >=5.5.9