Laravel Eloquent Serialization
You should let your model know that primary key is not auto incrementing value else it will try to convert the primary key into an integer.
Simply add this to your model.
public $incrementing = false;
You should let your model know that primary key is not auto incrementing value else it will try to convert the primary key into an integer.
Simply add this to your model.
public $incrementing = false;