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