mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
Nostr added
This commit is contained in:
@@ -40,6 +40,7 @@ class Meetup extends Resource
|
|||||||
'telegram_link',
|
'telegram_link',
|
||||||
'twitter_username',
|
'twitter_username',
|
||||||
'matrix_group',
|
'matrix_group',
|
||||||
|
'nostr',
|
||||||
];
|
];
|
||||||
|
|
||||||
public static $with = [
|
public static $with = [
|
||||||
@@ -115,6 +116,11 @@ class Meetup extends Resource
|
|||||||
->nullable()
|
->nullable()
|
||||||
->hideFromIndex(),
|
->hideFromIndex(),
|
||||||
|
|
||||||
|
Text::make(__('Nostr public key'), 'nostr')
|
||||||
|
->rules('nullable')
|
||||||
|
->nullable()
|
||||||
|
->hideFromIndex(),
|
||||||
|
|
||||||
Text::make(__('Twitter Username'), 'twitter_username')
|
Text::make(__('Twitter Username'), 'twitter_username')
|
||||||
->help(__('Without @'))
|
->help(__('Without @'))
|
||||||
->rules('nullable', 'string')
|
->rules('nullable', 'string')
|
||||||
|
|||||||
@@ -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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user