LengthAwarePaginator::lastPage()

int lastPage() Get the page number of the last available page. Return Value int

DatabaseNotification::replicate()

Model replicate(array $except = null) Clone the model into a new, non-existing instance. Parameters array $except Return Value Model

Paginator::fragment()

$this|string|null fragment(string|null $fragment = null) Get / set the URL fragment to be appended to URLs. Parameters string|null $fragment Return Value $this|string|null

Authorizable

Authorizable trait Authorizable (View source) Methods bool can(string $ability, array|mixed $arguments = array()) Determine if the entity has a given ability. bool cant(string $ability, array|mixed $arguments = array()) Determine if the entity does not have a given ability. bool cannot(string $ability, array|mixed $arguments = array()) Determine if the entity does not have a given ability.

Validator::setContainer()

void setContainer(Container $container) Set the IoC container instance. Parameters Container $container Return Value void

SortedMiddleware::slice()

Collection slice(int $offset, int $length = null) Slice the underlying collection array. Parameters int $offset int $length Return Value Collection

LengthAwarePaginator

LengthAwarePaginator interface LengthAwarePaginator implements Paginator (View source) Methods string url(int $page) Get the URL for a given page. from Paginator $this appends(array|string $key, string|null $value = null) Add a set of query string values to the paginator. from Paginator $this|string fragment(string|null $fragment = null) Get / set the URL fragment to be appended to URLs. from Paginator string|null nextPageUrl() The the URL for the next page, or null. from Pag

Repository

Repository class Repository implements ArrayAccess, Repository (View source) Methods void __construct(array $items = array()) Create a new configuration repository. bool has(string $key) Determine if the given configuration value exists. mixed get(string $key, mixed $default = null) Get the specified configuration value. void set(array|string $key, mixed $value = null) Set a given configuration value. void prepend(string $key, mixed $value) Prepend a value onto an arra

MorphOne::firstOrCreate()

Model firstOrCreate(array $attributes) Get the first related record matching the attributes or create it. Parameters array $attributes Return Value Model

WorkCommand::comment()

void comment(string $string, null|int|string $verbosity = null) Write a string as comment output. Parameters string $string null|int|string $verbosity Return Value void