ApcWrapper

ApcWrapper class ApcWrapper (View source) Methods void __construct() Create a new APC wrapper instance. mixed get(string $key) Get an item from the cache. array|bool put(string $key, mixed $value, int $seconds) Store an item in the cache. int|bool increment(string $key, mixed $value) Increment the value of an item in the cache. int|bool decrement(string $key, mixed $value) Decrement the value of an item in the cache. bool delete(string $key) Remove an item from th

Builder::first()

Model|Builder|null first(array $columns = array('*')) Execute the query and get the first result. Parameters array $columns Return Value Model|Builder|null

LengthAwarePaginator::resolveCurrentPage()

static int resolveCurrentPage(string $pageName = 'page', int $default = 1) Resolve the current page or return the default value. Parameters string $pageName int $default Return Value int

JobMakeCommand::getLaravel()

Application getLaravel() Get the Laravel application instance. Return Value Application

ControllerDispatcher::dispatch()

mixed dispatch(Route $route, mixed $controller, string $method) Dispatch a request to a given controller and method. Parameters Route $route mixed $controller string $method Return Value mixed

MorphOne::getRelationCountQuery()

Builder getRelationCountQuery(Builder $query, Builder $parent) Get the relationship count query. Parameters Builder $query Builder $parent Return Value Builder

ThrottleRequests

ThrottleRequests class ThrottleRequests (View source) Methods void __construct(RateLimiter $limiter) Create a new request throttler. mixed handle(Request $request, Closure $next, int $maxAttempts = 60, float|int $decayMinutes = 1) Handle an incoming request.

Gate::authorize()

Response authorize(string $ability, array|mixed $arguments = array()) Determine if the given ability should be granted for the current user. Parameters string $ability array|mixed $arguments Return Value Response Exceptions AuthorizationException

Auth\Passwords

Illuminate\Auth\Passwords Classes CanResetPassword DatabaseTokenRepository PasswordBroker PasswordResetServiceProvider

Service Container

Service Container Introduction Binding Binding Basics Binding Interfaces To Implementations Contextual Binding Tagging Resolving The Make Method Automatic Injection Container Events Introduction The Laravel service container is a powerful tool for managing class dependencies and performing dependency injection. Dependency injection is a fancy phrase that essentially means this: class dependencies are "injected" into the class via the constructor or, in some cases, "setter" methods. Let's