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) { + // + }); + } +};