add nostr

This commit is contained in:
HolgerHatGarKeineNode
2023-02-16 15:18:02 +01:00
parent 0b50a622ca
commit 382f7e2078
2 changed files with 34 additions and 1 deletions

View File

@@ -107,10 +107,13 @@ class Lecturer extends Resource
->hideFromIndex() ->hideFromIndex()
->rules('nullable', 'string'), ->rules('nullable', 'string'),
Text::make('Twitter username', 'twitter_username') Text::make(__('Twitter Username'), 'twitter_username')
->help(__('Without @')) ->help(__('Without @'))
->rules('nullable', 'string'), ->rules('nullable', 'string'),
Text::make(__('Nostr public key'), 'nostr')
->rules('nullable', 'string'),
Text::make('Website', 'website') Text::make('Website', 'website')
->hideFromIndex() ->hideFromIndex()
->rules('nullable', 'url'), ->rules('nullable', 'url'),

View File

@@ -0,0 +1,30 @@
<?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('lecturers', function (Blueprint $table) {
$table->string('nostr')
->nullable();
});
}
/**
* Reverse the migrations.
* @return void
*/
public function down()
{
Schema::table('lecturers', function (Blueprint $table) {
//
});
}
};