@@ -3,6 +3,6 @@ |
||
3 | 3 | use Illuminate\Routing\Router; |
4 | 4 | |
5 | 5 | /** @var $router Router */ |
6 | -post('translation/update', ['uses' => 'TranslationController@update', 'as' => 'api.translation.translations.update', ]); |
|
7 | -post('translation/clearCache', ['uses' => 'TranslationController@clearCache', 'as' => 'api.translation.translations.clearCache']); |
|
8 | -post('translation/revisions', ['uses' => 'TranslationController@revisions', 'as' => 'api.translation.translations.revisions']); |
|
6 | +post('translation/update', [ 'uses' => 'TranslationController@update', 'as' => 'api.translation.translations.update', ]); |
|
7 | +post('translation/clearCache', [ 'uses' => 'TranslationController@clearCache', 'as' => 'api.translation.translations.clearCache' ]); |
|
8 | +post('translation/revisions', [ 'uses' => 'TranslationController@revisions', 'as' => 'api.translation.translations.revisions' ]); |
@@ -4,12 +4,12 @@ |
||
4 | 4 | |
5 | 5 | /** @var Router $router */ |
6 | 6 | |
7 | -$router->group(['prefix' =>'/translation'], function (Router $router) { |
|
8 | - $router->bind('translations', function ($id) { |
|
7 | +$router->group([ 'prefix' =>'/translation' ], function(Router $router) { |
|
8 | + $router->bind('translations', function($id) { |
|
9 | 9 | return \Modules\Translation\Entities\TranslationTranslation::find($id); |
10 | 10 | }); |
11 | - get('translations', ['uses' => 'TranslationController@index', 'as' => 'admin.translation.translation.index', ]); |
|
12 | - get('translations/update/{translations}', ['uses' => 'TranslationController@update', 'as' => 'admin.translation.translation.update', ]); |
|
13 | - get('translations/export', ['uses' => 'TranslationController@export', 'as' => 'admin.translation.translation.export', ]); |
|
14 | - post('translations/import', ['uses' => 'TranslationController@import', 'as' => 'admin.translation.translation.import', ]); |
|
11 | + get('translations', [ 'uses' => 'TranslationController@index', 'as' => 'admin.translation.translation.index', ]); |
|
12 | + get('translations/update/{translations}', [ 'uses' => 'TranslationController@update', 'as' => 'admin.translation.translation.update', ]); |
|
13 | + get('translations/export', [ 'uses' => 'TranslationController@export', 'as' => 'admin.translation.translation.export', ]); |
|
14 | + post('translations/import', [ 'uses' => 'TranslationController@import', 'as' => 'admin.translation.translation.import', ]); |
|
15 | 15 | }); |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | */ |
12 | 12 | public function up() |
13 | 13 | { |
14 | - Schema::table('translation__translations', function (Blueprint $table) { |
|
14 | + Schema::table('translation__translations', function(Blueprint $table) { |
|
15 | 15 | $table->index('key'); |
16 | 16 | }); |
17 | 17 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | */ |
23 | 23 | public function down() |
24 | 24 | { |
25 | - Schema::table('translation__translations', function (Blueprint $table) { |
|
25 | + Schema::table('translation__translations', function(Blueprint $table) { |
|
26 | 26 | $table->dropIndex('key'); |
27 | 27 | }); |
28 | 28 | } |