Releases: chelout/laravel-relationship-events
Releases · chelout/laravel-relationship-events
StyleCI
Refactoring
Added
- Laravel 5.5 support (#1)
Changed
- Breaking change Moved HasAttributesMethods trait methods to static methods of helper class AttributesMethods.
- Documentation
Dispatchable relationship events
It is possible to fire event classes via $dispatchesEvents properties:
use Chelout\RelationshipEvents\Relationships\Concerns\HasOneEvents;
use Illuminate\Database\Eloquent\Model;
class User extends Model
{
use HasOneEvents;
protected $dispatchesEvents = [
'hasOneSaved' => HasOneSaved::class,
];
}
Laravel Relationship Events
Added relationships:
- One To One
- One To Many
- Many To Many
- One To One Polymorphic Relations
- One To Many Polymorphic Relations
- Many To Many Polymorphic Relations