Download the PHP package chelout/laravel-relationship-events without Composer
On this page you can find all versions of the php package chelout/laravel-relationship-events. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download chelout/laravel-relationship-events
More information about chelout/laravel-relationship-events
Files in chelout/laravel-relationship-events
Download chelout/laravel-relationship-events
More information about chelout/laravel-relationship-events
Files in chelout/laravel-relationship-events
Vendor chelout
Package laravel-relationship-events
Short Description Missing relationship events for Laravel
License MIT
Homepage https://github.com/chelout/laravel-relationship-events
Package laravel-relationship-events
Short Description Missing relationship events for Laravel
License MIT
Homepage https://github.com/chelout/laravel-relationship-events
Please rate this library. Is it a good library?
Informations about the package laravel-relationship-events
Laravel Relationship Events
Missing relationship events for Laravel
Install
- Install package with composer
Stable branch:
Development branch:
-
Use necessary trait in your model.
Available traits:
- HasOneEvents
- HasBelongsToEvents
- HasManyEvents
- HasBelongsToManyEvents
- HasMorphOneEvents
- HasMorphToEvents
- HasMorphManyEvents
- HasMorphToManyEvents
- HasMorphedByManyEvents
- Dispatchable relationship events. It is possible to fire event classes via $dispatchesEvents properties and adding trait:
Relationships
- One To One Relations
- One To Many Relations
- Many To Many Relations
- Has Many Through Relations
- One To One Polymorphic Relations
- One To Many Polymorphic Relations
- Many To Many Polymorphic Relations
Observers
Starting from v0.4 it is possible to use relationship events in Laravel observers classes Usage is very simple. Let's take and classes from One To One Relations, add trait to class. Define observer class:
Don't forget to register an observer in the method of your :
And now just create profile for user:
Todo
- Tests, tests, tests
All versions of laravel-relationship-events with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
illuminate/container Version ^11.0
illuminate/database Version ^11.0
illuminate/events Version ^11.0
illuminate/support Version ^11.0
illuminate/container Version ^11.0
illuminate/database Version ^11.0
illuminate/events Version ^11.0
illuminate/support Version ^11.0
The package chelout/laravel-relationship-events contains the following files
Loading the files please wait ....