Skip to content

SetupChecker ​

php
final class Zairakai\LaravelDevTools\Services\SetupChecker

Tells what the setup would publish that the project does not have, or has differently.

The files are generated in a temporary folder with the code of the setup itself (ConfigStubPublisher), then compared with the ones of the project. Nothing is written in the project. A file that differs can be a change of the project or a file late on the package: the check cannot tell, it shows the difference.

Source: src/Services/SetupChecker.php

Constants ​

NameValueDescription
DIFFERENT'different'
MISSING'missing'
SAME'same'

Methods ​

check() ​

php
public function check(string $vendorPath, string $basePath): array

Returns list<array{file: string, state: string, detail: string}>

inspect() ​

php
public function inspect(string $vendorPath, string $basePath, callable $then): mixed

Generates the files of the setup in a temporary folder, compares them with the project's, calls $then with the folder and the results, then removes the folder. The project is not written here.

Returns T

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