'array', 'created_at' => 'datetime', ]; public function client() { return $this->belongsTo(Client::class); } public function actor() { return $this->belongsTo(User::class, 'actor_user_id'); } // Polymorphic relation to entity if we had models for all of them // public function entity() // { // return $this->morphTo(); // } }