diff --git a/database/migrations/2023_02_08_123912_add_username_display_to_settings.php b/database/migrations/2023_02_08_123912_add_username_display_to_settings.php new file mode 100644 index 0000000000..c174e065c7 --- /dev/null +++ b/database/migrations/2023_02_08_123912_add_username_display_to_settings.php @@ -0,0 +1,34 @@ +boolean('display_username')->after('show_archived_in_list')->default(1)->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('settings', function (Blueprint $table) { + if (Schema::hasColumn('assets', 'display_username_in_list')) { + $table->dropColumn('display_username'); + } + }); + } +} diff --git a/resources/views/settings/general.blade.php b/resources/views/settings/general.blade.php index 6c0655abd5..edf042d64e 100644 --- a/resources/views/settings/general.blade.php +++ b/resources/views/settings/general.blade.php @@ -114,6 +114,22 @@ + +
{{ trans('general.display_username_help_text') }}
+