Appearance
SetupUpdater
php
final readonly class Zairakai\LaravelDevTools\Services\SetupUpdaterPublishes 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): arrayReturns array{created: list<string>, replaced: list<string>, kept: list<string>, backup: ?string}