0

Help me please to find my fault?

my data return
enter image description here

my update method
enter image description here

and then this my edit

editHandler(item) {
      this.inputType = "Ubah";
      this.editId = item.id_profile;
      this.form.noinduk = item.noinduk;
      this.form.tanggal = item.tanggal;
      this.form.tempat = item.tempat;
      this.form.jeniskelamin = item.jeniskelamin;
      this.form.asalsekolah = item.asalsekolah;
      this.form.tahun = item.tahun;
    },

my problem
enter image description here

my route/api enter image description here

1 Answers1

0

You are not passing id as parameter. editId should have value. While it is empty, your route trying to access:

Route::get('Profile',  'Api\ProfileController@index');

route. And as error said it is not allowed. Because it supports only get method. Url should look like:

http://127.0.0.1:8000/api/Profile/357

357 may be any number that represents id

Vüsal Hüseynli
  • 889
  • 1
  • 4
  • 16