Download the PHP package nullthoughts/laravel-latest-relation without Composer
On this page you can find all versions of the php package nullthoughts/laravel-latest-relation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nullthoughts/laravel-latest-relation
More information about nullthoughts/laravel-latest-relation
Files in nullthoughts/laravel-latest-relation
Download nullthoughts/laravel-latest-relation
More information about nullthoughts/laravel-latest-relation
Files in nullthoughts/laravel-latest-relation
Vendor nullthoughts
Package laravel-latest-relation
Short Description Eloquent macros for querying latest HasMany relationship in Laravel
License MIT
Package laravel-latest-relation
Short Description Eloquent macros for querying latest HasMany relationship in Laravel
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-latest-relation
Laravel Latest Relation
Eloquent macros for querying the latest HasMany relationship in Laravel.
More information on the problem and solutions: Dynamic scope on latest record in Laravel's HasMany relationships, Part 1: solving with Subqueries - nullthoughts.com
Installation
Install via composer:
composer require nullthoughts/laravel-latest-relation
Usage / Examples
Use the Builder methods inside a whereHas closure:
Latest:
whereLatestRelation($relation, $column, $operator = null, $value = null)
Query
Dynamic Scope
whereLatest($column, $value)
Query
Dynamic Scope
latestRelation()
Query
Dynamic Scope
Earliest:
All versions of laravel-latest-relation with dependencies
PHP Build Version
Package Version
No informations.
The package nullthoughts/laravel-latest-relation contains the following files
Loading the files please wait ....