Skip to content

Commit

Permalink
Fixed solution translations
Browse files Browse the repository at this point in the history
  • Loading branch information
PavlosIsaris committed Jan 23, 2025
1 parent 6aaf184 commit 1c7e56e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/Solution/SolutionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ public function update(Request $request, string $locale, int $id) {
'solution-slug' => 'required|string|alpha_dash|unique:solutions,slug,' . $id . '|max:111',
'solution-image' => 'nullable|image|mimes:jpeg,png,jpg,webp|max:2048',
'solution-owner-problem' => ['required'],
'extra_translations' => 'nullable|json',
]);

try {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?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('solution_translations', function (Blueprint $table) {
$table->text('description')->nullable()->change();
});
}

/**
* Reverse the migrations.
*/
public function down(): void {
Schema::table('solution_translations', function (Blueprint $table) {
//
});
}
};

0 comments on commit 1c7e56e

Please sign in to comment.