feat: complete approval workflow
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Domain\Reservations\Models;
|
||||
|
||||
use App\Domain\Approvals\Models\ApprovalAction;
|
||||
use App\Domain\Reservations\Enums\ReservationStatus;
|
||||
use App\Models\User;
|
||||
use Carbon\CarbonImmutable;
|
||||
@@ -57,4 +58,10 @@ class Reservation extends Model
|
||||
{
|
||||
return $this->hasMany(ReservationItem::class);
|
||||
}
|
||||
|
||||
/** @return HasMany<ApprovalAction, $this> */
|
||||
public function approvalActions(): HasMany
|
||||
{
|
||||
return $this->hasMany(ApprovalAction::class)->latest('created_at');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user