feat: add SoftDeletes trait to WorkspaceInvitation model

Add the SoftDeletes import and trait usage so delete() calls perform
soft deletes, preserving cancelled invitations for audit trail.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude 2026-03-24 13:37:05 +00:00
parent 940d59770d
commit a2e2b04e2a
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -8,6 +8,7 @@ use Core\Tenant\Database\Factories\WorkspaceInvitationFactory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Notifications\Notifiable;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;
@ -16,6 +17,7 @@ class WorkspaceInvitation extends Model
{
use HasFactory;
use Notifiable;
use SoftDeletes;
protected static function newFactory(): WorkspaceInvitationFactory
{