Skip to content

Commit 6306562

Browse files
committed
wip: remove language specific suffix
1 parent b0c4f11 commit 6306562

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

database/migrations/create_categories_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function up()
3333
->on('category_types')
3434
->onDelete('cascade');
3535

36-
if (config('cms.should_translate')) $table->jsonTranslatable();
36+
$table->jsonTranslatable();
3737
});
3838
}
3939

database/migrations/create_category_types_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function up()
1818
$table->string('singular_name');
1919
$table->string('slug')->unique();
2020
$table->timestamps();
21-
if (config('cms.should_translate')) $table->jsonTranslatable();
21+
$table->jsonTranslatable();
2222
});
2323
}
2424

database/migrations/create_post_types_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function up()
2323
$table->string('og_description')->nullable();
2424
$table->unsignedInteger('order_column')->default(0);
2525
$table->timestamps();
26-
if (config('cms.should_translate')) $table->jsonTranslatable();
26+
$table->jsonTranslatable();
2727
});
2828
}
2929

database/migrations/create_posts_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function up()
3636
$table->text('coords')->nullable();
3737
$table->foreignId('city_id')->nullable()->index();
3838

39-
if (config('cms.should_translate')) $table->jsonTranslatable();
39+
$table->jsonTranslatable();
4040

4141
// slugs must be unique for the category
4242
$table->unique(['slug', 'type'], 'unique_type_slug');

src/Cms.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function addToSidebar(array $menus = [])
145145
$all_post_types = PostType::all();
146146

147147
foreach ($all_post_types as $post_type) {
148-
$name = Str::title($post_type->name_en);
148+
$name = Str::title($post_type->name);
149149
$children = [
150150
MenuItem::make($name)
151151
->can('view_' . $post_type->permission_slug)

0 commit comments

Comments
 (0)