MorphMany::wrap()

string wrap(string $value) Wrap the given value with the parent query's grammar. Parameters string $value Return Value string

Pagination

Pagination Introduction Basic Usage Paginating Query Builder Results Paginating Eloquent Results Manually Creating A Paginator Displaying Pagination Results Converting Results To JSON Customizing The Pagination View Paginator Instance Methods Introduction In other frameworks, pagination can be very painful. Laravel's paginator is integrated with the query builder and Eloquent ORM and provides convenient, easy-to-use pagination of database results out of the box. The HTML generated by the

MorphMany::findOrNew()

Collection|Model findOrNew(mixed $id, array $columns = array('*')) Find a related model by its primary key or return new instance of the related model. Parameters mixed $id array $columns Return Value Collection|Model

Redirector

Redirector class Redirector (View source) Methods void __construct(UrlGenerator $generator) Create a new Redirector instance. RedirectResponse home(int $status = 302) Create a new redirect response to the "home" route. RedirectResponse back(int $status = 302, array $headers = array()) Create a new redirect response to the previous location. RedirectResponse refresh(int $status = 302, array $headers = array()) Create a new redirect response to the current URI. RedirectRes

KeyGenerateCommand::ask()

string ask(string $question, string $default = null) Prompt the user for input. Parameters string $question string $default Return Value string

Collection::__callStatic()

static mixed __callStatic(string $method, array $parameters) Dynamically handle calls to the class. Parameters string $method array $parameters Return Value mixed Exceptions BadMethodCallException

Model::resolveConnection()

static Connection resolveConnection(string|null $connection = null) Resolve a connection instance. Parameters string|null $connection Return Value Connection

EncryptedStore::getBag()

getBag($name) {@inheritdoc} Parameters $name

AuthorizesRequests::authorizeForUser()

Response authorizeForUser(Authenticatable|mixed $user, mixed $ability, mixed|array $arguments = array()) Authorize a given action for a user. Parameters Authenticatable|mixed $user mixed $ability mixed|array $arguments Return Value Response Exceptions AuthorizationException

HasOneOrMany::firstOrCreate()

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