mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
voting added
This commit is contained in:
31
database/factories/ProjectProposalFactory.php
Normal file
31
database/factories/ProjectProposalFactory.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
use Illuminate\Support\Str;
|
||||
use App\Models\ProjectProposal;
|
||||
use App\Models\User;
|
||||
|
||||
class ProjectProposalFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $model = ProjectProposal::class;
|
||||
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'user_id' => User::factory(),
|
||||
'name' => $this->faker->name,
|
||||
'support_in_sats' => $this->faker->randomNumber(),
|
||||
'description' => $this->faker->text,
|
||||
];
|
||||
}
|
||||
}
|
||||
32
database/factories/VoteFactory.php
Normal file
32
database/factories/VoteFactory.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
use Illuminate\Support\Str;
|
||||
use App\Models\ProjectProposal;
|
||||
use App\Models\User;
|
||||
use App\Models\Vote;
|
||||
|
||||
class VoteFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $model = Vote::class;
|
||||
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'user_id' => User::factory(),
|
||||
'project_proposal_id' => ProjectProposal::factory(),
|
||||
'value' => $this->faker->randomNumber(),
|
||||
'reason' => $this->faker->text,
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::disableForeignKeyConstraints();
|
||||
|
||||
Schema::create('project_proposals', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('user_id')->constrained()->cascadeOnDelete()->cascadeOnUpdate();
|
||||
$table->string('name')->unique();
|
||||
$table->unsignedInteger('support_in_sats');
|
||||
$table->text('description');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Schema::enableForeignKeyConstraints();
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('project_proposals');
|
||||
}
|
||||
};
|
||||
35
database/migrations/2023_03_10_190301_create_votes_table.php
Normal file
35
database/migrations/2023_03_10_190301_create_votes_table.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::disableForeignKeyConstraints();
|
||||
|
||||
Schema::create('votes', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('user_id')->constrained()->cascadeOnDelete()->cascadeOnUpdate();
|
||||
$table->foreignId('project_proposal_id')->constrained()->cascadeOnDelete()->cascadeOnUpdate();
|
||||
$table->unsignedInteger('value');
|
||||
$table->text('reason')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Schema::enableForeignKeyConstraints();
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('votes');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('project_proposals', function (Blueprint $table) {
|
||||
$table->foreignId('created_by')
|
||||
->nullable()
|
||||
->constrained('users')
|
||||
->onDelete('set null');
|
||||
});
|
||||
Schema::table('votes', function (Blueprint $table) {
|
||||
$table->foreignId('created_by')
|
||||
->nullable()
|
||||
->constrained('users')
|
||||
->onDelete('set null');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('project_proposals', function (Blueprint $table) {
|
||||
//
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -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.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('project_proposals', function (Blueprint $table) {
|
||||
$table->unsignedBigInteger('support_in_sats')
|
||||
->change();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('project_proposals', function (Blueprint $table) {
|
||||
//
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -39,145 +39,166 @@ class DatabaseSeeder extends Seeder
|
||||
{
|
||||
Artisan::call(CreateTags::class);
|
||||
Role::create([
|
||||
'name' => 'super-admin',
|
||||
'name' => 'super-admin',
|
||||
'guard_name' => 'web',
|
||||
]);
|
||||
Role::create([
|
||||
'name' => 'entitled-voter',
|
||||
'guard_name' => 'web',
|
||||
]);
|
||||
Permission::create([
|
||||
'name' => 'translate',
|
||||
'name' => 'translate',
|
||||
'guard_name' => 'web',
|
||||
]);
|
||||
$user = User::create([
|
||||
'name' => 'Admin',
|
||||
'email' => 'admin@einundzwanzig.space',
|
||||
'name' => 'Admin',
|
||||
'email' => 'admin@einundzwanzig.space',
|
||||
'email_verified_at' => now(),
|
||||
'password' => bcrypt('1234'),
|
||||
'remember_token' => Str::random(10),
|
||||
'is_lecturer' => true,
|
||||
'password' => bcrypt('1234'),
|
||||
'remember_token' => Str::random(10),
|
||||
'is_lecturer' => true,
|
||||
]);
|
||||
$entitledUser = User::create([
|
||||
'name' => 'Entitled Voter',
|
||||
'email' => 'voter1@einundzwanzig.space',
|
||||
'email_verified_at' => now(),
|
||||
'password' => bcrypt('1234'),
|
||||
'remember_token' => Str::random(10),
|
||||
'is_lecturer' => true,
|
||||
]);
|
||||
$entitledUser->assignRole('entitled-voter');
|
||||
User::create([
|
||||
'name' => 'Not Entitled Voter',
|
||||
'email' => 'voter1@einundzwanzig.space',
|
||||
'email_verified_at' => now(),
|
||||
'password' => bcrypt('1234'),
|
||||
'remember_token' => Str::random(10),
|
||||
'is_lecturer' => true,
|
||||
]);
|
||||
$team = Team::create([
|
||||
'name' => 'Admin Team',
|
||||
'user_id' => $user->id,
|
||||
'name' => 'Admin Team',
|
||||
'user_id' => $user->id,
|
||||
'personal_team' => true,
|
||||
]);
|
||||
$user->givePermissionTo('translate');
|
||||
$user->current_team_id = $team->id;
|
||||
$user->save();
|
||||
Country::create([
|
||||
'name' => 'Deutschland',
|
||||
'code' => 'de',
|
||||
'name' => 'Deutschland',
|
||||
'code' => 'de',
|
||||
'language_codes' => ['de'],
|
||||
]);
|
||||
Country::create([
|
||||
'name' => 'Österreich',
|
||||
'code' => 'at',
|
||||
'name' => 'Österreich',
|
||||
'code' => 'at',
|
||||
'language_codes' => ['de'],
|
||||
]);
|
||||
Country::create([
|
||||
'name' => 'Schweiz',
|
||||
'code' => 'ch',
|
||||
'name' => 'Schweiz',
|
||||
'code' => 'ch',
|
||||
'language_codes' => ['de'],
|
||||
]);
|
||||
Country::create([
|
||||
'name' => 'France',
|
||||
'code' => 'fr',
|
||||
'name' => 'France',
|
||||
'code' => 'fr',
|
||||
'language_codes' => ['fr'],
|
||||
]);
|
||||
Country::create([
|
||||
'name' => 'Sweden',
|
||||
'code' => 'se',
|
||||
'name' => 'Sweden',
|
||||
'code' => 'se',
|
||||
'language_codes' => ['sv'],
|
||||
]);
|
||||
Country::create([
|
||||
'name' => 'Serbia',
|
||||
'code' => 'rs',
|
||||
'name' => 'Serbia',
|
||||
'code' => 'rs',
|
||||
'language_codes' => ['rs'],
|
||||
'longitude' => 21,
|
||||
'latitude' => 44,
|
||||
'longitude' => 21,
|
||||
'latitude' => 44,
|
||||
]);
|
||||
City::create([
|
||||
'country_id' => 1,
|
||||
'name' => 'Füssen',
|
||||
'latitude' => 47.57143,
|
||||
'longitude' => 10.70171,
|
||||
'name' => 'Füssen',
|
||||
'latitude' => 47.57143,
|
||||
'longitude' => 10.70171,
|
||||
'created_by' => 1,
|
||||
]);
|
||||
City::create([
|
||||
'country_id' => 1,
|
||||
'name' => 'Kempten',
|
||||
'latitude' => 47.728569,
|
||||
'longitude' => 10.315784,
|
||||
'name' => 'Kempten',
|
||||
'latitude' => 47.728569,
|
||||
'longitude' => 10.315784,
|
||||
'created_by' => 1,
|
||||
]);
|
||||
City::create([
|
||||
'country_id' => 1,
|
||||
'name' => 'Pfronten',
|
||||
'latitude' => 47.582359,
|
||||
'longitude' => 10.5598,
|
||||
'name' => 'Pfronten',
|
||||
'latitude' => 47.582359,
|
||||
'longitude' => 10.5598,
|
||||
'created_by' => 1,
|
||||
]);
|
||||
City::create([
|
||||
'country_id' => 2,
|
||||
'name' => 'Wien',
|
||||
'latitude' => 48.20835,
|
||||
'longitude' => 16.37250,
|
||||
'name' => 'Wien',
|
||||
'latitude' => 48.20835,
|
||||
'longitude' => 16.37250,
|
||||
'created_by' => 1,
|
||||
]);
|
||||
City::create([
|
||||
'country_id' => 3,
|
||||
'name' => 'Zürich',
|
||||
'latitude' => 47.41330,
|
||||
'longitude' => 8.65639,
|
||||
'name' => 'Zürich',
|
||||
'latitude' => 47.41330,
|
||||
'longitude' => 8.65639,
|
||||
'created_by' => 1,
|
||||
]);
|
||||
City::create([
|
||||
'country_id' => 1,
|
||||
'name' => 'Hessen',
|
||||
'latitude' => 50.526501,
|
||||
'longitude' => 9.004440,
|
||||
'name' => 'Hessen',
|
||||
'latitude' => 50.526501,
|
||||
'longitude' => 9.004440,
|
||||
'created_by' => 1,
|
||||
]);
|
||||
Venue::create([
|
||||
'city_id' => 1,
|
||||
'name' => 'The Blue Studio Coworking (Füssen)',
|
||||
'street' => 'Teststraße 1',
|
||||
'city_id' => 1,
|
||||
'name' => 'The Blue Studio Coworking (Füssen)',
|
||||
'street' => 'Teststraße 1',
|
||||
'created_by' => 1,
|
||||
]);
|
||||
Venue::create([
|
||||
'city_id' => 2,
|
||||
'name' => 'The Blue Studio Coworking (Kempten)',
|
||||
'street' => 'Teststraße 2',
|
||||
'city_id' => 2,
|
||||
'name' => 'The Blue Studio Coworking (Kempten)',
|
||||
'street' => 'Teststraße 2',
|
||||
'created_by' => 1,
|
||||
]);
|
||||
Venue::create([
|
||||
'city_id' => 3,
|
||||
'name' => 'The Blue Studio Coworking (Pfronten)',
|
||||
'street' => 'Teststraße 3',
|
||||
'city_id' => 3,
|
||||
'name' => 'The Blue Studio Coworking (Pfronten)',
|
||||
'street' => 'Teststraße 3',
|
||||
'created_by' => 1,
|
||||
]);
|
||||
Venue::create([
|
||||
'city_id' => 4,
|
||||
'name' => 'Innsbruck',
|
||||
'street' => 'Innsbrucker Straße 1',
|
||||
'city_id' => 4,
|
||||
'name' => 'Innsbruck',
|
||||
'street' => 'Innsbrucker Straße 1',
|
||||
'created_by' => 1,
|
||||
]);
|
||||
Lecturer::create([
|
||||
'name' => 'Markus Turm',
|
||||
'active' => true,
|
||||
'name' => 'Markus Turm',
|
||||
'active' => true,
|
||||
'created_by' => 1,
|
||||
]);
|
||||
Lecturer::create([
|
||||
'name' => 'Beppo',
|
||||
'active' => true,
|
||||
'name' => 'Beppo',
|
||||
'active' => true,
|
||||
'created_by' => 1,
|
||||
]);
|
||||
Lecturer::create([
|
||||
'name' => 'Helper',
|
||||
'active' => true,
|
||||
'name' => 'Helper',
|
||||
'active' => true,
|
||||
'created_by' => 1,
|
||||
]);
|
||||
Lecturer::create([
|
||||
'name' => 'Gigi',
|
||||
'active' => true,
|
||||
'name' => 'Gigi',
|
||||
'active' => true,
|
||||
'created_by' => 1,
|
||||
]);
|
||||
$category = Category::create([
|
||||
@@ -190,8 +211,8 @@ class DatabaseSeeder extends Seeder
|
||||
]);
|
||||
$course = Course::create([
|
||||
'lecturer_id' => 1,
|
||||
'name' => 'Hands on Bitcoin',
|
||||
'created_by' => 1,
|
||||
'name' => 'Hands on Bitcoin',
|
||||
'created_by' => 1,
|
||||
'description' => '
|
||||
Klimakiller Bitcoin! Bitcoin hat keinen Nutzen! Bitcoin wird nur von Kriminellen genutzt!
|
||||
|
||||
@@ -211,8 +232,8 @@ Deshalb werden Sie von mir in diesem Kurs leicht verständlich an das Thema hera
|
||||
->attach($category);
|
||||
$course = Course::create([
|
||||
'lecturer_id' => 1,
|
||||
'name' => 'Bitcoin <> Crypto',
|
||||
'created_by' => 1,
|
||||
'name' => 'Bitcoin <> Crypto',
|
||||
'created_by' => 1,
|
||||
'description' => '
|
||||
Klimakiller Bitcoin! Bitcoin hat keinen Nutzen! Bitcoin wird nur von Kriminellen genutzt!
|
||||
|
||||
@@ -232,8 +253,8 @@ Deshalb werden Sie von mir in diesem Kurs leicht verständlich an das Thema hera
|
||||
->attach($categoryOnline);
|
||||
$course = Course::create([
|
||||
'lecturer_id' => 2,
|
||||
'name' => 'Bitcoin Lightning Network',
|
||||
'created_by' => 1,
|
||||
'name' => 'Bitcoin Lightning Network',
|
||||
'created_by' => 1,
|
||||
'description' => '
|
||||
Klimakiller Bitcoin! Bitcoin hat keinen Nutzen! Bitcoin wird nur von Kriminellen genutzt!
|
||||
|
||||
@@ -253,55 +274,55 @@ Deshalb werden Sie von mir in diesem Kurs leicht verständlich an das Thema hera
|
||||
->attach($categoryOnline);
|
||||
Participant::create([
|
||||
'first_name' => 'Roman',
|
||||
'last_name' => 'Reher',
|
||||
'last_name' => 'Reher',
|
||||
]);
|
||||
CourseEvent::create([
|
||||
'course_id' => 2,
|
||||
'venue_id' => 1,
|
||||
'link' => 'https://einundzwanzig.space',
|
||||
'from' => now()
|
||||
'course_id' => 2,
|
||||
'venue_id' => 1,
|
||||
'link' => 'https://einundzwanzig.space',
|
||||
'from' => now()
|
||||
->addDays(14)
|
||||
->startOfDay(),
|
||||
'to' => now()
|
||||
'to' => now()
|
||||
->addDays(14)
|
||||
->startOfDay()
|
||||
->addHour(),
|
||||
'created_by' => 1,
|
||||
]);
|
||||
CourseEvent::create([
|
||||
'course_id' => 1,
|
||||
'venue_id' => 2,
|
||||
'link' => 'https://einundzwanzig.space',
|
||||
'from' => now()
|
||||
'course_id' => 1,
|
||||
'venue_id' => 2,
|
||||
'link' => 'https://einundzwanzig.space',
|
||||
'from' => now()
|
||||
->addDays(31)
|
||||
->startOfDay(),
|
||||
'to' => now()
|
||||
'to' => now()
|
||||
->addDays(31)
|
||||
->startOfDay()
|
||||
->addHour(),
|
||||
'created_by' => 1,
|
||||
]);
|
||||
CourseEvent::create([
|
||||
'course_id' => 1,
|
||||
'venue_id' => 3,
|
||||
'link' => 'https://einundzwanzig.space',
|
||||
'from' => now()
|
||||
'course_id' => 1,
|
||||
'venue_id' => 3,
|
||||
'link' => 'https://einundzwanzig.space',
|
||||
'from' => now()
|
||||
->addDays(4)
|
||||
->startOfDay(),
|
||||
'to' => now()
|
||||
'to' => now()
|
||||
->addDays(4)
|
||||
->startOfDay()
|
||||
->addHour(),
|
||||
'created_by' => 1,
|
||||
]);
|
||||
CourseEvent::create([
|
||||
'course_id' => 3,
|
||||
'venue_id' => 3,
|
||||
'link' => 'https://einundzwanzig.space',
|
||||
'from' => now()
|
||||
'course_id' => 3,
|
||||
'venue_id' => 3,
|
||||
'link' => 'https://einundzwanzig.space',
|
||||
'from' => now()
|
||||
->addDays(4)
|
||||
->startOfDay(),
|
||||
'to' => now()
|
||||
'to' => now()
|
||||
->addDays(4)
|
||||
->startOfDay()
|
||||
->addHour(),
|
||||
@@ -309,72 +330,72 @@ Deshalb werden Sie von mir in diesem Kurs leicht verständlich an das Thema hera
|
||||
]);
|
||||
Registration::create([
|
||||
'course_event_id' => 1,
|
||||
'participant_id' => 1,
|
||||
'participant_id' => 1,
|
||||
]);
|
||||
$library = Library::create([
|
||||
'name' => 'Einundzwanzig',
|
||||
'name' => 'Einundzwanzig',
|
||||
'language_codes' => ['de'],
|
||||
'created_by' => 1,
|
||||
'created_by' => 1,
|
||||
]);
|
||||
$libraryItem = LibraryItem::create([
|
||||
'lecturer_id' => 3,
|
||||
'name' => 'BITCOIN - Eine Reise in den Kaninchenbau🐇🕳️',
|
||||
'type' => 'youtube_video',
|
||||
'lecturer_id' => 3,
|
||||
'name' => 'BITCOIN - Eine Reise in den Kaninchenbau🐇🕳️',
|
||||
'type' => 'youtube_video',
|
||||
'language_code' => 'de',
|
||||
'value' => 'https://www.youtube.com/watch?v=Oztd2Sja4k0',
|
||||
'created_by' => 1,
|
||||
'value' => 'https://www.youtube.com/watch?v=Oztd2Sja4k0',
|
||||
'created_by' => 1,
|
||||
]);
|
||||
$libraryItem->setStatus('published');
|
||||
$libraryItem->syncTagsWithType(['Bitcoin'], 'library_item');
|
||||
$library->libraryItems()
|
||||
->attach($libraryItem);
|
||||
$library = Library::create([
|
||||
'name' => 'Apricot',
|
||||
'name' => 'Apricot',
|
||||
'language_codes' => ['de', 'en'],
|
||||
'created_by' => 1,
|
||||
'created_by' => 1,
|
||||
]);
|
||||
$libraryItem = LibraryItem::create([
|
||||
'lecturer_id' => 4,
|
||||
'name' => 'Liebe Krypto- und Fiat-Bros️',
|
||||
'type' => 'blog_article',
|
||||
'lecturer_id' => 4,
|
||||
'name' => 'Liebe Krypto- und Fiat-Bros️',
|
||||
'type' => 'blog_article',
|
||||
'language_code' => 'de',
|
||||
'value' => 'https://aprycot.media/blog/liebe-krypto-und-fiat-bros/',
|
||||
'created_by' => 1,
|
||||
'value' => 'https://aprycot.media/blog/liebe-krypto-und-fiat-bros/',
|
||||
'created_by' => 1,
|
||||
]);
|
||||
$libraryItem->setStatus('published');
|
||||
$libraryItem->syncTagsWithType(['Bitcoin'], 'library_item');
|
||||
$library->libraryItems()
|
||||
->attach($libraryItem);
|
||||
$library = Library::create([
|
||||
'name' => 'Gigi',
|
||||
'name' => 'Gigi',
|
||||
'language_codes' => ['de', 'en'],
|
||||
'created_by' => 1,
|
||||
'created_by' => 1,
|
||||
]);
|
||||
$libraryItem = LibraryItem::create([
|
||||
'lecturer_id' => 4,
|
||||
'name' => 'Cryptography is Not Enough - Gigi @ Baltic Honeybadger 2022 ',
|
||||
'type' => 'youtube_video',
|
||||
'lecturer_id' => 4,
|
||||
'name' => 'Cryptography is Not Enough - Gigi @ Baltic Honeybadger 2022 ',
|
||||
'type' => 'youtube_video',
|
||||
'language_code' => 'de',
|
||||
'value' => 'https://www.youtube.com/watch?v=C7ynm0Zkwfk',
|
||||
'created_by' => 1,
|
||||
'value' => 'https://www.youtube.com/watch?v=C7ynm0Zkwfk',
|
||||
'created_by' => 1,
|
||||
]);
|
||||
$libraryItem->setStatus('published');
|
||||
$libraryItem->syncTagsWithType(['Proof of Work'], 'library_item');
|
||||
$library->libraryItems()
|
||||
->attach($libraryItem);
|
||||
$nonPublicLibrary = Library::create([
|
||||
'name' => 'Einundzwanzig Dozenten',
|
||||
'is_public' => false,
|
||||
'name' => 'Einundzwanzig Dozenten',
|
||||
'is_public' => false,
|
||||
'language_codes' => ['de', 'en'],
|
||||
'created_by' => 1,
|
||||
'created_by' => 1,
|
||||
]);
|
||||
$libraryItem = LibraryItem::create([
|
||||
'lecturer_id' => 4,
|
||||
'name' => 'Präsentation: Bitcoin VHS Kurs 2022',
|
||||
'type' => 'downloadable_file',
|
||||
'lecturer_id' => 4,
|
||||
'name' => 'Präsentation: Bitcoin VHS Kurs 2022',
|
||||
'type' => 'downloadable_file',
|
||||
'language_code' => 'de',
|
||||
'value' => null,
|
||||
'created_by' => 1,
|
||||
'value' => null,
|
||||
'created_by' => 1,
|
||||
]);
|
||||
$libraryItem->setStatus('published');
|
||||
$libraryItem->syncTagsWithType(['Präsentationen'], 'library_item');
|
||||
@@ -384,44 +405,44 @@ Deshalb werden Sie von mir in diesem Kurs leicht verständlich an das Thema hera
|
||||
Artisan::call(SyncOpenBooks::class);
|
||||
Artisan::call(ImportGithubMeetups::class);
|
||||
MeetupEvent::create([
|
||||
'meetup_id' => 1,
|
||||
'start' => now()
|
||||
'meetup_id' => 1,
|
||||
'start' => now()
|
||||
->addDays(31)
|
||||
->startOfDay()
|
||||
->addHours(20),
|
||||
'location' => 'Einundzwanzig Kempten',
|
||||
'location' => 'Einundzwanzig Kempten',
|
||||
'description' => fake()->text(),
|
||||
'link' => 'https://t.me/EinundzwanzigKempten',
|
||||
'created_by' => 1,
|
||||
'link' => 'https://t.me/EinundzwanzigKempten',
|
||||
'created_by' => 1,
|
||||
]);
|
||||
MeetupEvent::create([
|
||||
'meetup_id' => 1,
|
||||
'start' => now()
|
||||
'meetup_id' => 1,
|
||||
'start' => now()
|
||||
->subDays(2)
|
||||
->startOfDay()
|
||||
->addHours(20),
|
||||
'location' => 'Einundzwanzig Kempten',
|
||||
'location' => 'Einundzwanzig Kempten',
|
||||
'description' => fake()->text(),
|
||||
'link' => 'https://t.me/EinundzwanzigKempten',
|
||||
'created_by' => 1,
|
||||
'link' => 'https://t.me/EinundzwanzigKempten',
|
||||
'created_by' => 1,
|
||||
]);
|
||||
BitcoinEvent::create([
|
||||
'venue_id' => 4,
|
||||
'from' => Carbon::parse('2023-09-12')
|
||||
'venue_id' => 4,
|
||||
'from' => Carbon::parse('2023-09-12')
|
||||
->startOfDay()
|
||||
->addHours(8),
|
||||
'to' => Carbon::parse('2023-09-16')
|
||||
'to' => Carbon::parse('2023-09-16')
|
||||
->startOfDay()
|
||||
->addHours(18),
|
||||
'title' => 'BTC23',
|
||||
'title' => 'BTC23',
|
||||
'description' => 'The largest Bitcoin conference in German is entering the second round: The BTC23 will be even better, more diverse and quite controversial. We are open - for Bitcoiners, interested parties and skeptics from all directions. Three days with bitcoiners, thought leaders and entrepreneurs from space - full of relevant lectures, debates and conversations. And of course parties! The following applies: The BTC23 is there for everyone, no matter what level of knowledge you have on the subject. #bitcoinonly
|
||||
|
||||
Advance ticket sales begin on December 21, 2022 at 9:21 p.m. with time-limited early bird tickets.
|
||||
|
||||
Ticket presale begins on December 21, 2022 at 9:21 p.m. Be quick - there are a limited amount of early bird tickets again.
|
||||
',
|
||||
'link' => 'https://bconf.de/en/',
|
||||
'created_by' => 1,
|
||||
'link' => 'https://bconf.de/en/',
|
||||
'created_by' => 1,
|
||||
]);
|
||||
Artisan::call(SynchroniseMissingTranslationKeys::class);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user