Download the PHP package aw-studio/laravel-dynamic-relations without Composer
On this page you can find all versions of the php package aw-studio/laravel-dynamic-relations. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-dynamic-relations
Laravel Dynamic Relations
A package for attaching/detaching dynamic relations to Elqouent Models.
See also: Laravel Dynamic Attributes
Setup
Install the package via composer:
Publish the migrations:
Usage
Just add the HasDynamicRelations
to a Model:
And attach a relation:
The related Model can be detached using the detach
method:
Attaching A Collection
You may wish to attach a collection of models for a "many" relation. This can be achieved by passing an instance of a collection as a second parameter to the attach
method:
All versions of laravel-dynamic-relations with dependencies
PHP Build Version
Package Version
Requires
illuminate/support Version
^8.46
illuminate/contracts Version ^8.46
inertiajs/inertia-laravel Version ^0.4
illuminate/contracts Version ^8.46
inertiajs/inertia-laravel Version ^0.4
The package aw-studio/laravel-dynamic-relations contains the following files
Loading the files please wait ....