FactoryBuilder

FactoryBuilder class FactoryBuilder (View source) Methods void __construct(string $class, string $name, array $definitions, array $states, Generator $faker) Create an new builder instance. $this times(int $amount) Set the amount of models you wish to create / make. $this states(array|dynamic $states) Set the states to be applied to the model. mixed create(array $attributes = array()) Create a collection of models and persist them to the database. mixed make(array $attr

RedirectResponse::withErrors()

$this withErrors(MessageProvider|array|string $provider, string $key = 'default') Flash a container of errors to the session. Parameters MessageProvider|array|string $provider string $key Return Value $this

PasswordBroker::validateNewPassword()

bool validateNewPassword(array $credentials) Determine if the passwords match for the request. Parameters array $credentials Return Value bool

Blueprint::unsignedSmallInteger()

Fluent unsignedSmallInteger(string $column, bool $autoIncrement = false) Create a new unsigned small integer (2-byte) column on the table. Parameters string $column bool $autoIncrement Return Value Fluent

JoinClause::each()

bool each(callable $callback, int $count = 1000) Execute a callback over each item while chunking. Parameters callable $callback int $count Return Value bool Exceptions RuntimeException

JoinClause::updateOrInsert()

bool updateOrInsert(array $attributes, array $values = array()) Insert or update a record matching the attributes, and fill it with values. Parameters array $attributes array $values Return Value bool

AbstractPaginator::getUrlRange()

string getUrlRange(int $start, int $end) Create a range of pagination URLs. Parameters int $start int $end Return Value string

View::withErrors()

$this withErrors(MessageProvider|array $provider) Add validation errors to the view. Parameters MessageProvider|array $provider Return Value $this

Builder::orderByRaw()

$this orderByRaw(string $sql, array $bindings = array()) Add a raw "order by" clause to the query. Parameters string $sql array $bindings Return Value $this

UpCommand::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