Nostr added

This commit is contained in:
HolgerHatGarKeineNode
2023-02-14 14:35:34 +01:00
parent c659c99bee
commit 5b1d0886dc
2 changed files with 34 additions and 0 deletions

View File

@@ -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')

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
/**
* Run the migrations.
* @return void
*/
public function up()
{
Schema::table('meetups', function (Blueprint $table) {
$table->text('nostr')
->nullable();
});
}
/**
* Reverse the migrations.
* @return void
*/
public function down()
{
//
}
};