MaintenanceServiceProvider::provides()

array provides() Get the services provided by the provider. Return Value array

User::belongsToMany()

BelongsToMany belongsToMany(string $related, string $table = null, string $foreignKey = null, string $otherKey = null, string $relation = null) Define a many-to-many relationship. Parameters string $related string $table string $foreignKey string $otherKey string $relation Return Value BelongsToMany

Helper Functions

Helper Functions Introduction Available Methods Introduction Laravel includes a variety of global "helper" PHP functions. Many of these functions are used by the framework itself; however, you are free to use them in your own applications if you find them convenient.

PasswordBroker::validator()

void validator(Closure $callback) Set a custom password validator. Parameters Closure $callback Return Value void

Exists::where()

$this where(string $column, string $value = null) Set a "where" constraint on the query. Parameters string $column string $value Return Value $this

EventMakeCommand::call()

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

SortedMiddleware::first()

mixed first(callable $callback = null, mixed $default = null) Get the first item from the collection. Parameters callable $callback mixed $default Return Value mixed

User::hydrate()

static Collection hydrate(array $items, string|null $connection = null) Create a collection of models from plain arrays. Parameters array $items string|null $connection Return Value Collection

MorphPivot::getMutatedAttributes()

array getMutatedAttributes() Get the mutated attributes for a given instance. Return Value array

Model::getCasts()

array getCasts() Get the casts array. Return Value array