diff --git a/README.md b/README.md index 973f05a..281555a 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,18 @@ The available options are default limited to `'styles', 'bold', 'italic', 'link' For all available options check: https://ckeditor.com/docs/ckeditor5/latest/api/module_core_editor_editorconfig-EditorConfig.html +## Protecting your routes + +We are using https://github.com/esign/laravel-unleash-guard to protect our routes. After installation you can simply add the UnleashWebsiteMiddleware & EncryptCookies to your routes in your config file as shown below. +``` +use Esign\UnleashGuard\Http\Middleware\UnleashWebsiteMiddleware; + +return [ + ... + 'web-middleware' => ['web', UnleashWebsiteMiddleware::class], + 'api-middleware' => ['api', \App\Http\Middleware\EncryptCookies::class, UnleashWebsiteMiddleware::class], +]; +``` ### Testing diff --git a/config/config.php b/config/config.php index 09df0eb..b1c5fd0 100644 --- a/config/config.php +++ b/config/config.php @@ -2,7 +2,7 @@ return [ 'database' => env('INLINE_EDIT_DB_TABLE', 'dictionary'), + 'is_multilang' => env('INLINE_EDIT_MULTILANG', true), 'web-middleware' => ['web'], 'api-middleware' => ['api'], - 'is_multilang' => env('INLINE_EDIT_MULTILANG', true), ]; \ No newline at end of file