Skip to content

SetupRemover ​

php
final readonly class Zairakai\LaravelDevTools\Services\SetupRemover

Removes the files of the setup from a project, and only the ones that are still what the package publishes.

A file that the project changed is kept and named. The files of config/dev-tools/ that the project changed go only when $customized is given. Everything that is removed is copied first in .dev-tools-backup/<date>/, under its path from the root (the same folder as --force and setup-update): copying that folder at the root puts everything back.

Source: src/Services/SetupRemover.php

Methods ​

__construct() ​

php
public function __construct(SetupChecker $checker = new SetupChecker())

remove() ​

php
public function remove(string $vendorPath, string $basePath, bool $dryRun = false, bool $customized = false): array

Returns array{removed: list<string>, kept: list<array{file: string, reason: string}>, backup: ?string}

Documentation of 5.5.0 , built from 92a7387 on 5.5.0 by pipeline #3086393151 on 2026-11-18.