Model::with()

static Builder|Model with(array|string $relations) Begin querying a model with eager loading. Parameters array|string $relations Return Value Builder|Model

MakesHttpRequests::postJson()

$this postJson(string $uri, array $data = array(), array $headers = array()) Visit the given URI with a POST request, expecting a JSON response. Parameters string $uri array $data array $headers Return Value $this

UrlGenerator

UrlGenerator interface UrlGenerator (View source) Methods string current() Get the current URL for the request. string to(string $path, mixed $extra = array(), bool $secure = null) Generate an absolute URL to the given path. string secure(string $path, array $parameters = array()) Generate a secure, absolute URL to the given path. string asset(string $path, bool $secure = null) Generate the URL to an application asset. string route(string $name, mixed $parameters = arr

StoreInterface::put()

void put(string $key, mixed $value, int $minutes) Store an item in the cache for a given number of minutes. Parameters string $key mixed $value int $minutes Return Value void

MySqlConnection::setQueryGrammar()

void setQueryGrammar(Grammar $grammar) Set the query grammar used by the connection. Parameters Grammar $grammar Return Value void

NotificationServiceProvider

NotificationServiceProvider class NotificationServiceProvider extends ServiceProvider (View source) Methods void __construct(Application $app) Create a new service provider instance. from ServiceProvider static array pathsToPublish(string $provider = null, string $group = null) Get the paths to publish. from ServiceProvider void commands(array|mixed $commands) Register the package's custom Artisan commands. from ServiceProvider array provides() Get the services provided by the

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

DatabaseNotification::hasOne()

HasOne hasOne(string $related, string $foreignKey = null, string $localKey = null) Define a one-to-one relationship. Parameters string $related string $foreignKey string $localKey Return Value HasOne

SqsJob::fire()

void fire() Fire the job. Return Value void

Pivot::belongsTo()

BelongsTo belongsTo(string $related, string $foreignKey = null, string $otherKey = null, string $relation = null) Define an inverse one-to-one or many relationship. Parameters string $related string $foreignKey string $otherKey string $relation Return Value BelongsTo