laravel-settings icon indicating copy to clipboard operation
laravel-settings copied to clipboard

Eloquent/PostgreSQL issue returning `id`

Open adriandrozdz opened this issue 6 years ago • 2 comments

I needed to add this in order to make settings save

class EloquentStorage

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

adriandrozdz avatar Sep 21 '17 09:09 adriandrozdz

Same here

andresilva-cc avatar Jan 23 '18 15:01 andresilva-cc

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.

lsthor avatar Oct 10 '18 19:10 lsthor