Command::ask()

string ask(string $question, string $default = null) Prompt the user for input. Parameters string $question string $default Return Value string

Command::callSilent()

int callSilent(string $command, array $arguments = array()) Call another console command silently. Parameters string $command array $arguments Return Value int

Command::anticipate()

string anticipate(string $question, array $choices, string $default = null) Prompt the user for input with auto completion. Parameters string $question array $choices string $default Return Value string

Command::call()

int call(string $command, array $arguments = array()) Call another console command. Parameters string $command array $arguments Return Value int

Command

Command class Command extends Command (View source) Methods void __construct() Create a new console command instance. int run(InputInterface $input, OutputInterface $output) Run the console command. int call(string $command, array $arguments = array()) Call another console command. int callSilent(string $command, array $arguments = array()) Call another console command silently. bool hasArgument(string|int $name) Determine if the given argument is present. string|ar

Collection::__toString()

string __toString() Convert the collection to its string representation. Return Value string

Collections

Collections Introduction Creating Collections Available Methods Introduction The Illuminate\Support\Collection class provides a fluent, convenient wrapper for working with arrays of data. For example, check out the following code. We'll use the collect helper to create a new collection instance from the array, run the strtoupper function on each element, and then remove all empty elements: $collection = collect(['taylor', 'abigail', null])->map(function ($name) { return strtoupper($n

Collection::__toString()

string __toString() Convert the collection to its string representation. Return Value string

Collection::__construct()

void __construct(mixed $items = array()) Create a new collection. Parameters mixed $items Return Value void

Collection::__callStatic()

static mixed __callStatic(string $method, array $parameters) Dynamically handle calls to the class. Parameters string $method array $parameters Return Value mixed Exceptions BadMethodCallException