UniSharp / laravel-settings

Persistent key-value storage for Laravel, json value supported. l10n supported.
MIT License
105 stars 26 forks source link

Eloquent/PostgreSQL issue returning `id` #7

Open adriandrozdz opened 7 years ago

adriandrozdz commented 7 years ago

I needed to add this in order to make settings save

class EloquentStorage

protected $primaryKey = null; public $incrementing = false;

andresilva-cc commented 6 years ago

Same here

lsthor commented 6 years ago

Postgresql user here. I solved this issue by adding $table->increments('id'); to the migration file. It's a better solution in my opinion because we are not changing the code in the vendor folder. Hope this helps.