dimanche 10 septembre 2017

Laravel : Creating default object from empty value When insertion

I have problem about Creating default object from empty value on line $analyses->result = 1.0; I checked in my DB has all these column.

  $analysis = new Analysis;
  $analysis->psubid = '1';
  $analysis->subjectid = '1';
  $analyses->result = 1.0;
  $analyses->rtd = 2.0;
  $analyses->save();
  $Analysis = Analysis::all();
  return $Analysis;



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire