baopham / laravel-dynamodb

Eloquent syntax for DynamoDB
https://packagist.org/packages/baopham/dynamodb
MIT License
484 stars 128 forks source link

Add firstOrNew, firstOrCreate, and updateOrCreate methods #241

Open hipsterjazzbo opened 3 years ago

hipsterjazzbo commented 3 years ago

This is a borderline necromantic resurrection of #179, because I need to use these methods :)

hipsterjazzbo commented 3 years ago

Not entirely sure why Travis is complaining about the missing sniffs. Any ideas?

scrutinizer-notifier commented 3 years ago

The inspection completed: 3 updated code elements

nelson6e65 commented 1 year ago

Hi, @hipsterjazzbo Thanks for your contribution.

I still want this, but as it has some changes in PHP type-hints and Laravel helpers that may break v6 for some older PHP/Laravel versions, it will be left for v7 release. That release will, initially, remove compatibility with PHP < 7.4 and older Laravel versions. Then, v8 will remove compatibility to unsupported Laravel/PHP versions (PHP <=8.1, Laravel < 9 at this time).