Skip to content
update for Laravel 5.4 authored by Vladimir Schneider's avatar Vladimir Schneider
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
make it available at `http://yourdomain.com/translations`. Add the following to your make it available at `http://yourdomain.com/translations`. Add the following to your
`routes/web.php` file: `routes/web.php` file:
```php ```
use Vsch\TranslationManager\Translator; use Vsch\TranslationManager\Translator;
\Route::group(['middleware' => 'web', 'prefix' => 'translations'], function () { \Route::group(['middleware' => 'web', 'prefix' => 'translations'], function () {
...@@ -150,10 +150,12 @@ ...@@ -150,10 +150,12 @@
| The default group settings for the elFinder routes. | The default group settings for the elFinder routes.
| |
*/ */
return array(
'route' => [ 'route' => [
'prefix' => 'translations', 'prefix' => 'translations',
'middleware' => ['web', 'auth'], 'middleware' => ['web', 'auth'],
], ],
);
``` ```
8. 8.
##### Setting up user authorization ##### Setting up user authorization
... ...
......