You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the controller you received model as a parameter Mahasiswa $mahasiswa which by default will look for the data by id (which you don't have) that is why you're getting Unknown column id error.
On resources/views/mahasiswa/edit.blade.php you pass $mahasiswa->NIM, so you could change your update method on your controller as:
i use protected $primaryKey = 'NIM';
public $incrementing = false;
protected $keyType = 'string';
(IN Mahasiswa Model)
it's already fine when store/add data to database but when i want to update the data, it's alwasys error.
The text was updated successfully, but these errors were encountered: