Eloquent: Relationships

Eloquent: Relationships Introduction Defining Relationships One To One One To Many One To Many (Inverse) Many To Many Has Many Through Polymorphic Relations Many To Many Polymorphic Relations Querying Relations Relationship Methods Vs. Dynamic Properties Querying Relationship Existence Querying Relationship Absence Counting Related Models Eager Loading Constraining Eager Loads Lazy Eager Loading Inserting & Updating Related Models The save Method The create Method Belongs To Relation

Eloquent: Mutators

Eloquent: Mutators Introduction Accessors & Mutators Defining An Accessor Defining A Mutator Date Mutators Attribute Casting Array & JSON Casting Introduction Accessors and mutators allow you to format Eloquent attribute values when you retrieve or set them on model instances. For example, you may want to use the Laravel encrypter to encrypt a value while it is stored in the database, and then automatically decrypt the attribute when you access it on an Eloquent model. In addition

Eloquent: Getting Started

Eloquent: Getting Started Introduction Defining Models Eloquent Model Conventions Retrieving Models Collections Chunking Results Retrieving Single Models / Aggregates Retrieving Aggregates Inserting & Updating Models Inserts Updates Mass Assignment Other Creation Methods Deleting Models Soft Deleting Querying Soft Deleted Models Query Scopes Global Scopes Local Scopes Events Observers Introduction The Eloquent ORM included with Laravel provides a beautiful, simple ActiveReco

Eloquent: Collections

Eloquent: Collections Introduction Available Methods Custom Collections Introduction All multi-result sets returned by Eloquent are instances of the Illuminate\Database\Eloquent\Collection object, including results retrieved via the get method or accessed via a relationship. The Eloquent collection object extends the Laravel base collection, so it naturally inherits dozens of methods used to fluently work with the underlying array of Eloquent models. Of course, all collections also serve as i

Dumper::dump()

void dump(mixed $value) Dump a value with elegance. Parameters mixed $value Return Value void

Dumper

Dumper class Dumper (View source) Methods void dump(mixed $value) Dump a value with elegance.

DownCommand::__construct()

void __construct() Create a new console command instance. Return Value void

DownCommand::warn()

void warn(string $string, null|int|string $verbosity = null) Write a string as warning output. Parameters string $string null|int|string $verbosity Return Value void

DownCommand::table()

void table(array $headers, Arrayable|array $rows, string $style = 'default') Format input to textual table. Parameters array $headers Arrayable|array $rows string $style Return Value void

DownCommand::setLaravel()

void setLaravel(Container $laravel) Set the Laravel application instance. Parameters Container $laravel Return Value void