From 5b1d0886dc68ad2bb614326ee279fc8ac9b810c5 Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode Date: Tue, 14 Feb 2023 14:35:34 +0100 Subject: [PATCH] Nostr added --- app/Nova/Meetup.php | 6 ++++ ...4_133446_add_nostr_field_meetups_table.php | 28 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 database/migrations/2023_02_14_133446_add_nostr_field_meetups_table.php diff --git a/app/Nova/Meetup.php b/app/Nova/Meetup.php index 438c08cf..9eaedd6a 100644 --- a/app/Nova/Meetup.php +++ b/app/Nova/Meetup.php @@ -40,6 +40,7 @@ class Meetup extends Resource 'telegram_link', 'twitter_username', 'matrix_group', + 'nostr', ]; public static $with = [ @@ -115,6 +116,11 @@ class Meetup extends Resource ->nullable() ->hideFromIndex(), + Text::make(__('Nostr public key'), 'nostr') + ->rules('nullable') + ->nullable() + ->hideFromIndex(), + Text::make(__('Twitter Username'), 'twitter_username') ->help(__('Without @')) ->rules('nullable', 'string') diff --git a/database/migrations/2023_02_14_133446_add_nostr_field_meetups_table.php b/database/migrations/2023_02_14_133446_add_nostr_field_meetups_table.php new file mode 100644 index 00000000..0c3cfc69 --- /dev/null +++ b/database/migrations/2023_02_14_133446_add_nostr_field_meetups_table.php @@ -0,0 +1,28 @@ +text('nostr') + ->nullable(); + }); + } + + /** + * Reverse the migrations. + * @return void + */ + public function down() + { + // + } +};