Skip to content
Peace Ngara edited this page Mar 29, 2017 · 3 revisions

Welcome to the ck-editor-plugin wiki!

Installation

  1. Step One Install Laravel framework. The following command will install the latest version of Laravel with the project name LaravelDefault.

      composer create-project laravel/laravel LaravelDefault
    
  2. Step Two Create a Folder Packages in your Laravel Root Directory

  3. Step 3 Clone or Download the CKEditor V1 Plugin to your Packages Director CKEditor Plugin V1CKEditorPluginV1

Configuration

  1. Inside the root Laravel project, open the composer.json file. In that file, look for:

      "autoload" : {
          "psr-4": {
              ...
    

    Inside of the psr-4 tag, load the following:

      "EONConsulting\\CKEditorPlugin\\": "Packages/CKEditorPlugin/src"
    
  2. Just as above, except in the components composer.json file:

      "EONConsulting\\CKEditorPlugin\\": "src/*"
    

Use as a global function instead of by namespace (Optional)

Under the psr-4 but still inside of the autoload if the array files does not exist, create it like this:

     "files": [
         ...
      ]

And enter into it:

     "Packages/CKEditorPlugin/src/Http/helpers.php"

And again, in the components composer.json file:

     "src/Http/helpers.php"

Registering the Service Provider

Open up config/app.php. In the providers array, enter the following:

     EONConsulting\CKEditorPlugin\CKEditorPluginServiceProvider::class,

Creating a Facade

In the same file, in the aliases array, enter:

     'CKEditorPlugin' => \EONConsulting\CKEditorPlugin\src\Facades\CKEditorPlugin::class,

Laravel LTI

This Component requires that the Laravel LTI Package be installed

See LaravelLTI for Installation instructions

Publis Assets and All Migrations

In the command line / terminal, enter the following command in the root of the Laravel project:

composer dump-autoload -o
php artisan vendor:publish
php artisan migrate