mixed random(int $amount = 1) Get one or more items randomly from the collection. Parameters int $amount Return Value mixed Exceptions InvalidArgumentException
mixed pushRaw(string $payload, string $queue = null, array $options = array()) Push a raw payload onto the queue. Parameters string $payload string $queue array $options Return Value mixed
Seeder class Seeder (View source) Methods void run() Run the database seeds. void call(string $class) Seed the given connection from the given path. $this setContainer(Container $container) Set the IoC container instance. $this setCommand(Command $command) Set the console command instance.
Application getLaravel() Get the Laravel application instance. Return Value Application
void setLaravel(Container $laravel) Set the Laravel application instance. Parameters Container $laravel Return Value void
array __sleep() Prepare the instance for serialization. Return Value array
void warn(string $string, null|int|string $verbosity = null) Write a string as warning output. Parameters string $string null|int|string $verbosity Return Value void
string secret(string $question, bool $fallback = true) Prompt the user for input but hide the answer from the console. Parameters string $question bool $fallback Return Value string
void abort(int $code, string $message = '', array $headers = array()) Throw an HttpException with the given data. Parameters int $code string $message array $headers Return Value void Exceptions HttpException
void register() Register the service provider. Return Value void
Page 479 of 996