feat: add solved threads
All checks were successful
CI/CD Pipeline / test (push) Successful in 3s
CI/CD Pipeline / deploy (push) Successful in 26s

This commit is contained in:
2026-01-24 14:11:55 +01:00
parent e3dcf99362
commit 2409feb06f
11 changed files with 161 additions and 3 deletions

View File

@@ -14,6 +14,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @property int|null $user_id
* @property string $title
* @property string $body
* @property bool $solved
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Forum $forum
@@ -41,6 +42,11 @@ class Thread extends Model
'user_id',
'title',
'body',
'solved',
];
protected $casts = [
'solved' => 'bool',
];
public function forum(): BelongsTo