Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
];