Download the PHP package zing/laravel-eloquent-relationships without Composer
On this page you can find all versions of the php package zing/laravel-eloquent-relationships. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zing/laravel-eloquent-relationships
More information about zing/laravel-eloquent-relationships
Files in zing/laravel-eloquent-relationships
Download zing/laravel-eloquent-relationships
More information about zing/laravel-eloquent-relationships
Files in zing/laravel-eloquent-relationships
Vendor zing
Package laravel-eloquent-relationships
Short Description More eloquent relationships for Laravel
License MIT
Homepage https://github.com/zingimmick/laravel-eloquent-relationships
Package laravel-eloquent-relationships
Short Description More eloquent relationships for Laravel
License MIT
Homepage https://github.com/zingimmick/laravel-eloquent-relationships
Please rate this library. Is it a good library?
Informations about the package laravel-eloquent-relationships
Laravel Eloquent Relationships
Requirements
Require Laravel Eloquent Relationships using Composer:
Usage
BelongsToOne
BelongsToOne
is based on BelongsToMany
Difference:
- returns related model instead of collection of models
- returns
null
instead of empty collection of models if the relationship does not exist - supports return default related model in case the relationship does not exist
Example:
MorphToOne
MorphToOne
is based on MorphToMany
Difference:
- returns related model instead of collection of models
- returns
null
instead of empty collection of models if the relationship does not exist - supports return default related model in case the relationship does not exist
Example:
License
Laravel Eloquent Relationships is an open-sourced software licensed under the MIT license.
All versions of laravel-eloquent-relationships with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
illuminate/database Version ^8.69 || ^9.0 || ^10.0 || ^11.0
illuminate/support Version ^8.69 || ^9.0 || ^10.0 || ^11.0
illuminate/database Version ^8.69 || ^9.0 || ^10.0 || ^11.0
illuminate/support Version ^8.69 || ^9.0 || ^10.0 || ^11.0
The package zing/laravel-eloquent-relationships contains the following files
Loading the files please wait ....