Skip to content

Releases: chelout/laravel-relationship-events

StyleCI

01 May 15:00
9b02c48
Compare
Choose a tag to compare

Added

  • StyleCI

Changed

  • Style fixes

Refactoring

12 Apr 07:44
Compare
Choose a tag to compare

Added

  • Laravel 5.5 support (#1)

Changed

  • Breaking change Moved HasAttributesMethods trait methods to static methods of helper class AttributesMethods.
  • Documentation

Dispatchable relationship events

04 Apr 21:02
Compare
Choose a tag to compare

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

04 Apr 21:02
Compare
Choose a tag to compare

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