kitar / laravel-dynamodb

A DynamoDB based Eloquent model and Query builder for Laravel.
MIT License
179 stars 27 forks source link

Integration with laravel-activitylog #47

Open Yanun1 opened 4 months ago

Yanun1 commented 4 months ago

Hi everybody. I am trying to implement laravel-activitylog contracts with your library. I have a problem calling $this->MorphTo() because dynamodb does not support connections. How can I fix or replace this logic?

kitar commented 4 months ago

Most libraries that work with DBs are typically designed for RDBs. However, because of the unique characteristics of DynamoDB, this library does not support relational features. In this situation, I would suggest either making your own logging functionality or opting for an RDB.

joeljohn135 commented 4 months ago

Try Manual Polymorphic Relations. Or I would suggest the same as mentioned by @kitar.