This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

deroccha
deroccha

In Laravel I can change the used primaryKey like

protected $primaryKey = 'my_id';

I was trying to apply the same in my Model but does not work. Is there a way to achive the same?

deroccha
deroccha

using protected $primarykey = 'my_id'; works

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.