Implement project board status workflow
This commit is contained in:
@@ -7,6 +7,7 @@ use Illuminate\Database\Eloquent\Attributes\Fillable;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
|
||||
#[Fillable([
|
||||
'acceptance_criteria',
|
||||
@@ -43,4 +44,11 @@ class Ticket extends Model
|
||||
{
|
||||
return $this->belongsTo(TicketType::class);
|
||||
}
|
||||
|
||||
public function worklogEntries(): HasMany
|
||||
{
|
||||
return $this->hasMany(TicketWorklogEntry::class)
|
||||
->orderByDesc('created_at')
|
||||
->orderByDesc('id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user