Skip to content

SetupUpdater ​

php
final readonly class Zairakai\LaravelDevTools\Services\SetupUpdater

Publishes again the files that SetupChecker reports as missing or different, and only those.

A file of the project that is replaced is copied first in .dev-tools-backup/ (ConfigBackup, the folder that --force uses). No merge: the project puts its own settings back from the copy. A symbolic link is left alone.

Source: src/Services/SetupUpdater.php

Methods ​

__construct() ​

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

update() ​

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

Returns array{created: list<string>, replaced: list<string>, kept: list<string>, backup: ?string}

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