From 382f7e2078d0b7688a89b859114508600ecece2c Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode Date: Thu, 16 Feb 2023 15:18:02 +0100 Subject: [PATCH] add nostr --- app/Nova/Lecturer.php | 5 +++- ...618_add_nostr_field_to_lecturers_table.php | 30 +++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 database/migrations/2023_02_16_141618_add_nostr_field_to_lecturers_table.php diff --git a/app/Nova/Lecturer.php b/app/Nova/Lecturer.php index 56cfa662..0342e1b7 100644 --- a/app/Nova/Lecturer.php +++ b/app/Nova/Lecturer.php @@ -107,10 +107,13 @@ class Lecturer extends Resource ->hideFromIndex() ->rules('nullable', 'string'), - Text::make('Twitter username', 'twitter_username') + Text::make(__('Twitter Username'), 'twitter_username') ->help(__('Without @')) ->rules('nullable', 'string'), + Text::make(__('Nostr public key'), 'nostr') + ->rules('nullable', 'string'), + Text::make('Website', 'website') ->hideFromIndex() ->rules('nullable', 'url'), diff --git a/database/migrations/2023_02_16_141618_add_nostr_field_to_lecturers_table.php b/database/migrations/2023_02_16_141618_add_nostr_field_to_lecturers_table.php new file mode 100644 index 00000000..4d08dae4 --- /dev/null +++ b/database/migrations/2023_02_16_141618_add_nostr_field_to_lecturers_table.php @@ -0,0 +1,30 @@ +string('nostr') + ->nullable(); + }); + } + + /** + * Reverse the migrations. + * @return void + */ + public function down() + { + Schema::table('lecturers', function (Blueprint $table) { + // + }); + } +};