Apply Laravel coding style

Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions.

You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root.

For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style).
This commit is contained in:
Shift
2023-02-19 16:18:46 +00:00
committed by HolgerHatGarKeineNode
parent a15ca4a2bc
commit 5776b01d15
333 changed files with 4915 additions and 4967 deletions

View File

@@ -2,10 +2,9 @@
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\BitcoinEvent;
use App\Models\Venue;
use Illuminate\Database\Eloquent\Factories\Factory;
class BitcoinEventFactory extends Factory
{

View File

@@ -2,9 +2,8 @@
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\BookCase;
use Illuminate\Database\Eloquent\Factories\Factory;
class BookCaseFactory extends Factory
{

View File

@@ -2,9 +2,8 @@
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\Category;
use Illuminate\Database\Eloquent\Factories\Factory;
class CategoryFactory extends Factory
{

View File

@@ -2,10 +2,9 @@
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\City;
use App\Models\Country;
use Illuminate\Database\Eloquent\Factories\Factory;
class CityFactory extends Factory
{

View File

@@ -2,9 +2,8 @@
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\Country;
use Illuminate\Database\Eloquent\Factories\Factory;
class CountryFactory extends Factory
{

View File

@@ -2,10 +2,9 @@
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\Course;
use App\Models\Lecturer;
use Illuminate\Database\Eloquent\Factories\Factory;
class CourseFactory extends Factory
{

View File

@@ -2,10 +2,9 @@
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\Episode;
use App\Models\Podcast;
use Illuminate\Database\Eloquent\Factories\Factory;
class EpisodeFactory extends Factory
{

View File

@@ -2,11 +2,10 @@
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\Course;
use App\Models\CourseEvent;
use App\Models\Venue;
use Illuminate\Database\Eloquent\Factories\Factory;
class EventFactory extends Factory
{

View File

@@ -2,10 +2,9 @@
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\Lecturer;
use App\Models\Team;
use Illuminate\Database\Eloquent\Factories\Factory;
class LecturerFactory extends Factory
{

View File

@@ -2,9 +2,8 @@
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\Library;
use Illuminate\Database\Eloquent\Factories\Factory;
class LibraryFactory extends Factory
{

View File

@@ -2,11 +2,10 @@
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\Lecturer;
use App\Models\Library;
use App\Models\LibraryItems;
use Illuminate\Database\Eloquent\Factories\Factory;
class LibraryItemsFactory extends Factory
{

View File

@@ -2,10 +2,9 @@
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\Meetup;
use App\Models\MeetupEvent;
use Illuminate\Database\Eloquent\Factories\Factory;
class MeetupEventFactory extends Factory
{

View File

@@ -2,10 +2,9 @@
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\City;
use App\Models\Meetup;
use Illuminate\Database\Eloquent\Factories\Factory;
class MeetupFactory extends Factory
{

View File

@@ -2,11 +2,10 @@
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\BookCase;
use App\Models\OrangePill;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
class OrangePillFactory extends Factory
{

View File

@@ -2,9 +2,8 @@
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\Participant;
use Illuminate\Database\Eloquent\Factories\Factory;
class ParticipantFactory extends Factory
{

View File

@@ -2,9 +2,8 @@
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\Podcast;
use Illuminate\Database\Eloquent\Factories\Factory;
class PodcastFactory extends Factory
{

View File

@@ -2,11 +2,10 @@
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\CourseEvent;
use App\Models\Participant;
use App\Models\Registration;
use Illuminate\Database\Eloquent\Factories\Factory;
class RegistrationFactory extends Factory
{

View File

@@ -2,10 +2,9 @@
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\City;
use App\Models\Venue;
use Illuminate\Database\Eloquent\Factories\Factory;
class VenueFactory extends Factory
{

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -37,6 +39,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -1,8 +1,8 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Spatie\Permission\PermissionRegistrar;
class CreatePermissionTables extends Migration
@@ -71,7 +71,6 @@ class CreatePermissionTables extends Migration
$table->primary([PermissionRegistrar::$pivotPermission, $columnNames['model_morph_key'], 'model_type'],
'model_has_permissions_permission_model_type_primary');
}
});
Schema::create($tableNames['model_has_roles'], function (Blueprint $table) use ($tableNames, $columnNames, $teams) {

View File

@@ -8,6 +8,7 @@ class CreateCountriesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
@@ -24,6 +25,7 @@ class CreateCountriesTable extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void

View File

@@ -8,6 +8,7 @@ class CreateCitiesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
@@ -32,6 +33,7 @@ class CreateCitiesTable extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -22,6 +24,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -19,6 +21,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -19,6 +21,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -32,11 +34,11 @@ return new class extends Migration {
$table->index(['attachable_type', 'attachable_id']);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -20,6 +22,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -20,6 +22,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -18,6 +20,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -8,6 +8,7 @@ class CreatePodcastsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
@@ -29,6 +30,7 @@ class CreatePodcastsTable extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void

View File

@@ -8,6 +8,7 @@ class CreateEpisodesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
@@ -31,6 +32,7 @@ class CreateEpisodesTable extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void

View File

@@ -8,6 +8,7 @@ class CreateLibrariesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
@@ -25,6 +26,7 @@ class CreateLibrariesTable extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void

View File

@@ -8,6 +8,7 @@ class CreateLibraryItemsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
@@ -39,6 +40,7 @@ class CreateLibraryItemsTable extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void

View File

@@ -8,6 +8,7 @@ class CreateLibraryLibraryItemTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -30,6 +31,7 @@ class CreateLibraryLibraryItemTable extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -8,6 +8,7 @@ class CreateBookCasesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
@@ -41,6 +42,7 @@ class CreateBookCasesTable extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void

View File

@@ -1,8 +1,8 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
@@ -28,7 +28,7 @@ return new class extends Migration
$table->timestamps();
});
Schema::create('comment_notification_subscriptions', function(Blueprint $table) {
Schema::create('comment_notification_subscriptions', function (Blueprint $table) {
$table->id();
$table->morphs('commentable', 'cn_subscriptions_commentable');
$table->morphs('subscriber', 'cn_subscriptions_subscriber');

View File

@@ -8,6 +8,7 @@ class CreateMeetupEventsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
@@ -35,6 +36,7 @@ class CreateMeetupEventsTable extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void

View File

@@ -8,6 +8,7 @@ class CreateBitcoinEventsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
@@ -35,6 +36,7 @@ class CreateBitcoinEventsTable extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -93,6 +95,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -19,6 +21,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -19,6 +21,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -21,6 +23,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -19,6 +21,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -1,8 +1,8 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddReputationFieldOnUserTable extends Migration
{

View File

@@ -1,8 +1,8 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateGamifyTables extends Migration
{

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -20,6 +22,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -21,6 +23,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -19,6 +21,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -24,6 +26,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -22,6 +24,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -22,6 +24,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -20,6 +22,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -19,6 +21,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -23,6 +25,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -21,6 +23,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -20,6 +22,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -20,6 +22,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -21,6 +23,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -25,6 +27,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -19,6 +21,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -23,6 +25,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -25,6 +27,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -21,6 +23,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -19,6 +21,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -19,6 +21,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -19,6 +21,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -19,6 +21,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,24 +4,27 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('library_items', function (Blueprint $table) {
DB::statement("ALTER TABLE library_items
DB::statement('ALTER TABLE library_items
ALTER COLUMN tweet DROP DEFAULT,
ALTER COLUMN tweet TYPE BOOLEAN USING tweet::BOOLEAN,
ALTER COLUMN tweet SET DEFAULT FALSE;"
ALTER COLUMN tweet SET DEFAULT FALSE;'
);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -19,6 +21,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -19,6 +21,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -4,9 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -19,6 +21,7 @@ return new class extends Migration {
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -8,6 +8,7 @@ class CreateMeetupUserTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
@@ -32,6 +33,7 @@ class CreateMeetupUserTable extends Migration
/**
* Reverse the migrations.
*
* @return void
*/
public function down()

View File

@@ -16,7 +16,6 @@ use App\Models\CourseEvent;
use App\Models\Lecturer;
use App\Models\Library;
use App\Models\LibraryItem;
use App\Models\Meetup;
use App\Models\MeetupEvent;
use App\Models\Participant;
use App\Models\Registration;
@@ -35,155 +34,156 @@ class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
Artisan::call(CreateTags::class);
Role::create([
'name' => 'super-admin',
'name' => 'super-admin',
'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,
]);
$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([
'team_id' => 1,
'name' => 'Markus Turm',
'active' => true,
'team_id' => 1,
'name' => 'Markus Turm',
'active' => true,
'created_by' => 1,
]);
Lecturer::create([
'team_id' => 1,
'name' => 'Beppo',
'active' => true,
'team_id' => 1,
'name' => 'Beppo',
'active' => true,
'created_by' => 1,
]);
Lecturer::create([
'team_id' => 1,
'name' => 'Helper',
'active' => true,
'team_id' => 1,
'name' => 'Helper',
'active' => true,
'created_by' => 1,
]);
Lecturer::create([
'team_id' => 1,
'name' => 'Gigi',
'active' => true,
'team_id' => 1,
'name' => 'Gigi',
'active' => true,
'created_by' => 1,
]);
$category = Category::create([
@@ -196,8 +196,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!
@@ -217,8 +217,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!
@@ -238,8 +238,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!
@@ -259,55 +259,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(),
@@ -315,72 +315,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');
@@ -390,44 +390,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);
}