Command::ask()

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

Command::arguments()

array arguments() Get all of the arguments passed to the command. Return Value array

Command::argument()

string|array argument(string $key = null) Get the value of a command argument. Parameters string $key Return Value string|array

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

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

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::__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::__construct()

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