Skip to content

Shell ​

php
interface Zairakai\LaravelDevTools\Update\Shell

What the update runs on the machine: commands in the project, the environment, the log, and the masking of the tokens.

Source: src/Update/Shell.php

Methods ​

env() ​

php
public function env(string $name, string $default = ''): string

An environment variable, or the default one when it is not set or empty.

error() ​

php
public function error(string $message): void

A line on the error output: what the check found, for the log of the job.

exec() ​

php
public function exec(array $command, string $input = null, array $allowed = [0]): string
ParameterDescription
$allowedThe exit statuses that are not a failure.

log() ​

php
public function log(string $message): void

mask() ​

php
public function mask(string $text): string

remoteUrl() ​

php
public function remoteUrl(): string

The URL of the project with the token, to push.

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