Documentation

Welcome to the Laravel Lexicon pages! Here you can quickly jump to a particular page.


Anonymous function

function($object){ ... }

Arrow Function

fn($post) => $post->id

Closure

function($object) use ($parameter) {...}

Contract

interfaces that define the core services provided by the framework

Controller

group associated request handling logic within a single class

Dependency injection

design pattern that allows the removal of hard-coded dependencies and makes it possible to change them, whether at run-time or compile-time

Facade

design pattern that provides a simplified (but limited) interface to a complex system of classes, library or framework

Null Coalescing operator

$array['value'] ?? $default_value

Service Container

is the object that lets all service providers register themselves and their dependencies

Service Provider

is a package with specific functionality that boots with your Laravel application

Singleton

ensures that a class has only one instance, while providing a global access point to this instance.

Ternary Operator

$condition ? $if_true : $if_false