protected function registerSupportRoutes()
    {
        $domain = config('sleeping_owl.domain', false);

        $middlewares = collect($this->getConfig('middleware'));
        $configGroup = collect([
            'prefix'     => $this->getConfig('url_prefix'),
            'middleware' => $middlewares,
        ]);

        if ($domain) {
            $configGroup->put('domain', $domain);
        }

        $this->app['router']->group($configGroup->toArray(), function (Router $route) {
            $route->get('ckeditor/upload/image', [
                'as'   => 'admin.ckeditor.upload',
                'uses' => 'SleepingOwl\Admin\Http\Controllers\UploadController@ckEditorStore',
            ]);

            $route->post('ckeditor/upload/image', [
                'as'   => 'admin.ckeditor.upload',
                'uses' => 'SleepingOwl\Admin\Http\Controllers\UploadController@ckEditorStore',
            ]);
        });
    }
protected function registerSupportRoutes()
    {
        $domain = config('sleeping_owl.domain', false);

        $middlewares = collect($this->getConfig('middleware'));
        $configGroup = collect([
            'prefix'     => $this->getConfig('url_prefix'),
            'middleware' => $middlewares,
        ]);

        if ($domain) {
            $configGroup->put('domain', $domain);
        }

        $this->app['router']->group($configGroup->toArray(), function (Router $route) {
            $route->get('ckeditor/upload/image', [
                'as'   => 'admin.ckeditor.upload',
                'uses' => 'SleepingOwl\Admin\Http\Controllers\UploadController@ckEditorStore',
            ]);

            $route->post('ckeditor/upload/image', [
                'as'   => 'admin.ckeditor.upload',
                'uses' => 'SleepingOwl\Admin\Http\Controllers\UploadController@ckEditorStore',
            ]);
        });
    }
protected function registerSupportRoutes ( ) { $ domain = config ( 'sleeping_owl.domain' , false ) ; $ middlewares = collect ( $ this -> getConfig ( 'middleware' ) ) ; $ configGroup = collect ( [ 'prefix' => $ this -> getConfig ( 'url_prefix' ) , 'middleware' => $ middlewares , ] ) ; if ( $ domain ) { $ configGroup -> put ( 'domain' , $ domain ) ; } $ this -> app [ 'router' ] -> group ( $ configGroup -> toArray ( ) , function ( Router $ route ) { $ route -> get ( 'ckeditor/upload/image' , [ 'as' => 'admin.ckeditor.upload' , 'uses' => 'SleepingOwl\Admin\Http\Controllers\UploadController@ckEditorStore' , ] ) ; $ route -> post ( 'ckeditor/upload/image' , [ 'as' => 'admin.ckeditor.upload' , 'uses' => 'SleepingOwl\Admin\Http\Controllers\UploadController@ckEditorStore' , ] ) ; } ) ; }
Register CKEditor Upload and D&D plugins.
Register CKEditor Upload and D&D plugins .