where('slug', $slug) ->first(); if (! $sprint) { throw new \InvalidArgumentException("Sprint not found: {$slug}"); } $sprint->cancel($reason); return $sprint->fresh(); } }